![]() |
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. Syntax: 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: Program 1:
Output:
5 Program 2:
Output:
5 Reference: https://www.php.net/manual/en/spldoublylinkedlist.count.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 7 |