PHP | DsMap intersect() Function
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: public Ds\Map::intersect( Ds\Map $map ) Parameter: This function accepts single parameter $map which holds the other map which contains the key