Skip to content

Tag Archives: PHP-ds_map

The Ds\Map::remove() function is an inbuilt function in PHP which is used to remove and return a value by key. Syntax: mixed Ds\Map::remove( $key, $default… Read More
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… Read More
The Ds\Map::capacity() function is an inbuilt function in PHP, which is used to return the current capacity of the map. Syntax: int public Ds\Map::capacity( void… Read More
The Ds\Map::intersect() function is an inbuilt function in PHP, which is used to create a new map which contains the intersection with another map. Syntax:… Read More
The Ds\Map::filter() function is an inbuilt function in PHP which is used to create a new map using the filter function. Syntax: Ds\Map public Ds\Map::filter(… Read More
The Ds\Map::diff() function is an inbuilt function in PHP which is used to create a map using the key which contains the elements of the… Read More
The Ds\Map::__construct() function is an inbuilt function in PHP which is used to creates a new instance. Syntax: public Ds\Map::__construct( $values ) Parameter: This function… Read More
The Ds\Map::allocate() function is an inbuilt function in PHP which is used to allocate enough memory for required capacity. Syntax: void public Ds\Map::allocate( $capacity )… Read More
The Ds\Map::get() function is an inbuilt function in PHP which is used to return the value of the given key. Syntax: mixed public Ds\Map::get( mixed… Read More
The Ds\Map::count() function is an inbuilt function in PHP which is used to count the number of elements present in the Map. It also referred… Read More
The Ds\Map::ksort() function is an inbuilt function in PHP, which is used to sort the map element in-place by key. Syntax: void public Ds\Map::ksort ([… Read More
The Ds\Map::skip() function is an inbuilt function in PHP, which is used to return the pair at a given positional index. Syntax: Ds\Pair public Ds\Map::skip… Read More
The Ds\Map::values() function is an inbuilt function in PHP which is used to return a sequence of the map’s values. Syntax: Ds\Sequence public Ds\Map::values (… Read More
The Ds\Map::putAll() function is an inbuilt function in PHP, which is used to associates all key-value pairs of a traversable object or array. Syntax: void… Read More
The Ds\Map::put() function is an inbuilt function in PHP, which is used to associates a key with a value. Syntax: void public Ds\Map::put( $key, $value… Read More