PHP | DS\Sequence Functions Complete Reference
A Sequence is used to arrange the values in a single and linear dimension way. In some languages, the sequence refers to the List. The sequence is similar to the array which is used as incremental integer keys are listed below:
- The index value of the sequence are [0, 1, 2, …, size – 1], where size represents the size of the array.
- The sequence elements are accessed by using index value so it allows to access values by index in the range [0, size – 1].
- The DS\Sequence is the efficient Data Structure in PHP 7. It is an alternative of the array.
Requirements: PHP 7 is required for both extension and the compatibility polyfill.
Installation: The easiest way to install data structure by using PECL extension.
pecl install ds
The complete list of data structure DS\Sequence are given below:
- PHP | Ds\Sequence allocate() Function
- PHP | Ds\Sequence apply() Function
- PHP | Ds\Sequence capacity() Function
- PHP | Ds\Sequence contains() Function
- PHP | Ds\Sequence filter() Function
- PHP | Ds\Sequence find() Function
- PHP | Ds\Sequence first() Function
- PHP | Ds\Sequence get() Function
- PHP | Ds\Sequence insert() Function
- PHP | Ds\Sequence join() Function
- PHP | Ds\Sequence last() Function
- PHP | Ds\Sequence map() Function
- PHP | Ds\Sequence merge() Function
- PHP | Ds\Sequence pop() Function
- PHP | Ds\Sequence push() Function
- PHP | Ds\Sequence reduce() Function
- PHP | Ds\Sequence remove() Function
- PHP | Ds\Sequence reverse() Function
- PHP | Ds\Sequence reversed() Function
- PHP | Ds\Sequence rotate() Function
- PHP | Ds\Sequence set() Function
- PHP | Ds\Sequence shift() Function
- PHP | Ds\Sequence slice() Function
- PHP | Ds\Sequence sort() Function
- PHP | Ds\Sequence sorted() Function
- PHP | Ds\Sequence sum() Function
- PHP | Ds\Sequence unshift() Function
Recommended Posts:
- PHP | GMP Functions Complete Reference
- PHP | Ds\Map Functions Complete Reference
- PHP | Ds\Set Functions Complete Reference
- CSS | Functions Complete Reference
- PHP | Ds\Stack Functions Complete Reference
- PHP | Math Functions Complete Reference
- PHP | DS\Vector Functions Complete Reference
- PHP | ImagickDraw Functions Complete Reference
- PHP | Ds\Deque Functions Complete Reference
- PHP | Ds\PriorityQueue Functions Complete Reference
- PHP | array Functions Complete Reference
- PHP | Ds\Queue Functions Complete Reference
- PHP | Calendar Functions Complete Reference
- PHP | Gmagick Functions Complete Reference
- PHP | IntlChar Functions Complete Reference
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.