The SplDoublyLinkedList::bottom() function is an inbuilt function in PHP which is used to peek the value of node from the beginning of the doubly linked list.
mixed SplDoublyLinkedList::bottom( void )
Parameters: It does not accepts any parameter.
Return Value: It returns the value of first node in doubly linked list.
Below programs illustrate the SplDoublyLinkedList::bottom() 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.