I\'m looking at the PHP Manual, and I\'m not seeing a section on data structures that most languages have, such as lists and sets. Am I just blind or does PHP not have anything
Although this question is 8 years old I'm posting an answer because PHP 7 introduces an extension called ds
providing specialized data structures as an alternative to the array.
The ds
,
Ds\
namespace.Collection
, Sequence
and Hashable
Vector
, Deque
,Queue
, PriorityQueue
, Map
, Set
, Stack
, and Pair
For more information checkout the Manual and also This blog post has some awesome information including benchmarks.