The SplDoublyLinkedList::count() function is an inbuilt function in PHP which is used to count the number of elements present in a doubly linked list.
int SplDoublyLinkedList::count( void )
Parameters: It does not contain any parameter.
Return Value: It returns the number of elements present in doubly linked list.
Below programs illustrate the SplDoublyLinkedList::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.