PHP Ds\Vector Functions Complete Reference
A Vector Data Structure is used to store the sequence of values in a contiguous memory buffer which grows and shrinks automatically. The vector data structure mapped the index value to its index buffer and the growth factor isn’t bound to a specific multiple or exponent.
It is the efficient Data Structure in PHP 7 to provide the alternative of an 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\Vector are given below:
- PHP | Ds\Vector allocate() Function
- PHP | Ds\Vector apply() Function
- PHP | Ds\Vector capacity() Function
- PHP | Ds\Vector clear() Function
- PHP | Ds\Vector __construct() Function
- PHP | Ds\Vector contains() Function
- PHP | Ds\Vector copy() Function
- PHP | Ds\Vector count() Function
- PHP | Ds\Vector filter() Function
- PHP | Ds\Vector find() Function
- PHP | Ds\Vector first() Function
- PHP | Ds\Vector get() Function
- PHP | Ds\Vector insert() Function
- PHP | Ds\Vector isEmpty() Function
- PHP | Ds\Vector join() Function
- PHP | Ds\Vector jsonSerialize() Function
- PHP | Ds\Vector last() Function
- PHP | Ds\Vector map() Function
- PHP | Ds\Vector merge() Function
- PHP | Ds\Vector pop() Function
- PHP | Ds\Vector push() Function
- PHP | Ds\Vector reduce() Function
- PHP | Ds\Vector remove() Function
- PHP | Ds\Vector reverse() Function
- PHP | Ds\Vector rotate() Function
- PHP | Ds\Vector set() Function
- PHP | Ds\Vector shift() Function
- PHP | Ds\Vector slice() Function
- PHP | Ds\Vector sort() Function
- PHP | Ds\Vector sorted() Function
- PHP | Ds\Vector sum() Function
- PHP | Ds\Vector toArray() Function
- PHP | Ds\Vector unshift() Function