PHP-SPL(数据结构)
php SPL四种常用的数据结构
1.栈【先进后出】
1 | <span style="font-size:18px;">$stack = new SplStack(); |
2.队列【先进先出 后进后出】
1 | <span style="font-size:18px;">$queue = new SplQueue(); |
3.堆
1 | <span style="font-size:18px;">$heap = new SplMinHeap(); |
4.固定尺寸数组
1 | <span style="font-size:18px;">$array = new SplFixedArray(5); |
————————————————
推荐学习:http://www.imooc.com/video/4849
原文链接:https://blog.csdn.net/zhengwish/article/details/51742264
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment