Is there a Collection
DataStructure
available in PHP
with API
to add elements dynamically ?
Is array
suitable for this?
PHP SPL提供了相当多的数据结构以及可能满足您大多数需求的ArrayObject
PHP is dynamically typed, so arrays should be flexible enough to do what you need here. You can use them to represent stacks, queues, hash tables, lists, etc.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.