Home > Article > Backend Development > What are the php data structures?
What are the data structures of php
##Doubly linked list
PHP programming from entry to proficiency)
Heap
The heap is a tree structure that follows the heap attributes: each node Greater than or equal to its children, compared using the implemented comparison method on the heap global.Array
An array is a structure that stores data in a continuous manner and can be accessed through an index. Don't confuse them with PHP arrays: PHP arrays are actually implemented as ordered lists.Mapping
Mapping is a data with key-value pairs. PHP arrays can be thought of as mappings from integers/strings to values. SPL provides mapping from objects to data. This map can also be used as an object set.Stack Stack
is similar to a queue, a data structure with data storage characteristics. Features: Data is stored in a first-in-last-out manner. The stack has only one outlet, and elements can only be added and removed from the top of the stack.queue Queue
Features: First-in-first-out (FIFO), used in concurrency, can safely pass objects from one task to another.set Set
Features: Save unique elements.map Dictionary
graph Graph
The above is the detailed content of What are the php data structures?. For more information, please follow other related articles on the PHP Chinese website!