![](/style/images/good.png)
3
![](/style/images/bad.png)
PHP之双向链表
source link: https://panda843.github.io/article/2340898584.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
PHP之双向链表
发表于 2017-12-28 | 分类于 开发 | | 浏览 次 | 字数统计: 597 | 阅读时长 ≈ 2
SPL,PHP 标准库(Standard PHP Library) ,从 PHP 5.0 起内置的组件和接口,且从 PHP5.3 已逐渐的成熟。SPL 在所有的 PHP5 开发环境中被内置,同时无需任何设置。
双向链表原理图
SplDoublyLinkedList
双向链表是一种重要的线性存储结构,对于双向链表中的每个节点,不仅仅存储自己的信息,还要保存前驱和后继节点的地址。
PHP SPL中的SplDoublyLinkedList类提供了对双向链表的操作。
SplDoublyLinkedList类说明
SplDoublyLinkedList implements Iterator , ArrayAccess , Countable { |
SplDoublyLinkedList使用
$list = new SplDoublyLinkedList(); |
-------------本文结束感谢您的阅读-------------
坚持原创技术分享,您的支持将鼓励我继续创作!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK