The SplObjectStorage::count() function is an inbuilt function in PHP which is used to count the number of objects in storage.
Parameters: This function does not contains any parameter.
Return Value: This function returns number of objects in storage.
Below programs illustrate the SplObjectStorage::count() 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.