The Ds\Map::capacity() function is an inbuilt function in PHP, which is used to return the current capacity of the map.
int public Ds\Map::capacity( void )
Parameter: This function does not accept any parameter.
Return value: This function returns the current capacity of map.
Below program illustrates the Ds\Map::capacity() function in PHP:
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.