Home  >  Article  >  Backend Development  >  php不支持指针,怎么实现单向链表?

php不支持指针,怎么实现单向链表?

WBOY
WBOYOriginal
2016-06-13 10:01:23892browse

php不支持指针,如何实现单向链表???
rt?
如何实现一个单项链表的排序插入,删除??

------解决方案--------------------
用array吧,基本功能都能实现
比自己创建链表方便
------解决方案--------------------
你可以参照java实现的方法,在类里自包含一个类,呵呵
------解决方案--------------------
关注。。
------解决方案--------------------
你不要把php这个shell script当成是C语言……

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn