Skip to content
Related Articles

Related Articles

PHP Ds\Map Functions Complete Reference

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 21 Mar, 2022

A Map is a sequential collection of key-value pair which is very similar to the array. The key of a map can be of any type and it is unique. If any value added to the same key in a Map then the map value will replace.

It is the efficient Data Structure in PHP 7 to provide the alternative of an array.

Requirements: PHP 7 is required for both extension and the compatibility polyfill.

Installation: The easiest way to install data structure by using PECL extension.

pecl install ds

The complete list of data structure DS\Map are given below:

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!