Skip to content

Tag Archives: PHP-ds_map

The Ds\Map::union() function is an inbuilt function in PHP which is used to create a new map which contains the union of two maps. Syntax:… Read More
The Ds\Map::reduce() function is an inbuilt function in PHP which is used to reduce the map to a single value by applying operations using the… Read More
The Ds\Map::ksorted() function is an inbuilt function in PHP, which is used to returns a copy which is sorted by key. Syntax: Ds\Map public Ds\Map::ksorted… Read More
The Ds\Map::xor() function is an inbuilt function in PHP which is used to create a new map which contains the value either in the first… Read More
The Ds\Map::merge() function is an inbuilt function in PHP which is used to return the result of adding all given associations. Syntax: Ds\Map public Ds\Map::merge(… Read More
The Ds\Deque::copy() function is an inbuilt function in PHP which is used to return a copy of the Deque. This will return a shallow copy… Read More
The Ds\Deque::capacity() function is an inbuilt function in PHP which is used to get the current capacity of the Deque. Syntax: public Ds\Deque::capacity( void )… Read More
The Ds\Deque::clear() function is an inbuilt function in PHP which is used to clear the Deque by removing all elements from the Deque. Syntax: public… Read More
The Ds\Deque::filter() function is an inbuilt function in PHP which is used to filter out the elements from the deque based on the operation defined… Read More
The Ds\Deque::allocate() function is an inbuilt function in PHP which is used to allocate memory as specified in the argument. If the argument is not… Read More
The Ds\Deque::contains() function is an inbuilt function in PHP which is used to check if the element is present in the Deque or not. Syntax:… Read More
The skip() function of PHP Ds\Map class is used to get a key-value pair present at a specific index in the Map instance. The index… Read More
The Ds\Map::reversed() function in PHP is used to get a copy of the reverse of elements of a specified Map instance. That is, the function… Read More
The Ds\Map::sorted() function is an inbuilt function in PHP which is used to get a copy of the specified Map instance sorted according to the… Read More
The Ds/Map::reverse() function in PHP is used to in-place reverse the elements of a specified Map instance. That is, the function in-place reverses the order… Read More