Skip to content
Related Articles

Related Articles

PHP | DS\Vector Functions Complete Reference
  • Last Updated : 20 Jun, 2019

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:

   

My Personal Notes arrow_drop_up