Comments 4
Look at www.php.net/manual/en/class.spldoublylinkedlist.php and tell me, please, why, exactly, you need separate classes for list and node?
It is not about whether the PHP has the in-built class or not. It is about Linked List and how it can be implemented from scratch in PHP. I hope it helped.
I guess there is no implementation mistake here. By the way, thanks for the info.
Sign up to leave a comment.
Implementation of Linked List in PHP