![](/style/images/good.png)
1
![](/style/images/bad.png)
PHP之栈-Stack
source link: https://panda843.github.io/article/4134649319.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之栈-Stack
发表于 2017-12-28 | 分类于 开发 | | 浏览 次 | 字数统计: 690 | 阅读时长 ≈ 3
SPL,PHP 标准库(Standard PHP Library) ,从 PHP 5.0 起内置的组件和接口,且从 PHP5.3 已逐渐的成熟。SPL 在所有的 PHP5 开发环境中被内置,同时无需任何设置。
栈(Stack)原理图
SplStack
栈(Stack)是一种特殊的线性表,因为它只能在线性表的一端进行插入或删除元素(即进栈和出栈)。
栈是一种后进先出(LIFO)的数据结构。
PHP SPL中的SplStack继承自双向链表SplDoublyLinkedList。
SplStack类说明
SplStack extends SplDoublyLinkedList implements Iterator , ArrayAccess , Countable { |
SplStack使用
<?php |
-------------本文结束感谢您的阅读-------------
坚持原创技术分享,您的支持将鼓励我继续创作!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK