On a quest to expand my programming prowess, I’ve delved ever-so-slightly into The Standard PHP Library. This led to my discovery of the SplDoublyLinkedList class. From there I read the descriptions of Linked Lists and Doubly Linked Lists on Wikipedia.
I understand how they work… But I cannot conceive of a reason WHY we need it—or better yet a practical example of SplDoublyLinkedList since we have indexed and associative arrays in PHP.
How are Linked Lists normally used in-and-out of PHP?
The SPL data structures reduce memory consumption and improve performance. Good explanations:
http://web.archive.org/web/20130805120049/http://blueparabola.com/blog/spl-deserves-some-reiteration
http://matthewturland.com/2010/05/20/new-spl-features-in-php-5-3/