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:
- PHP | Ds\Map allocate() Function
- PHP | Ds\Map apply() Function
- PHP | Ds\Map capacity() Function
- PHP | DS\Map clear() Function
- PHP | Ds\Map __construct() Function
- PHP Ds\Map copy() Function
- PHP | Ds\Map count() Function
- PHP | Ds\Map diff() Function
- PHP | Ds\Map filter() Function
- PHP Ds\Map first() Function
- PHP | Ds\Map get() Function
- PHP | Ds\Map hasKey() Function
- PHP | Ds\Map hasValue() Function
- PHP | Ds\Map intersect() Function
- PHP | Ds\Map isEmpty() Function
- PHP | Ds\Map keys() Function
- PHP | Ds\Map::ksort() Function
- PHP | Ds\Map ksorted() Function
- PHP | Ds\Map last() Function
- PHP | Ds\Map map() Function
- PHP | Ds\Map merge() Function
- PHP Ds\Map pairs() Function
- PHP | Ds\Map put() Function
- PHP | Ds\Map putAll() function
- PHP | Ds\Map reduce() Function
- PHP | Ds\Map reverse() Function
- PHP | Ds\Map reversed() Function
- PHP | Ds\Map skip() Function
- PHP Ds\Map slice() Function
- PHP | Ds\Map sort() Function
- PHP | Ds\Map sorted() Function
- PHP Ds\Map sum() Function
- PHP Ds\Map toArray() Function
- PHP | Ds\Map union() Function
- PHP | Ds\Map values() Function
- PHP | Ds\Map xor() Function
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.