PHP DS / Sequence Function Reference

PHP

A sequence is used to order values ​​in a single and linear dimension. In some languages, the sequence refers to a list. The sequence is similar to an array, which is used as additional integer keys listed below:
  • Sequence index values: [0, 1, 2,…, size - 1], where size represents the size of the array.
  • The elements of the sequence are accessed using the index value, which allows access to values ​​by index in the range [0, size - 1].
  • DS / Sequence - it is an efficient data structure in PHP 7. It is an array alternative.
Requirements:PHP 7 is required for both extensibility and polyfill compatibility.Installation:The easiest way to install the data structure using the PECL extension.
pecl install ds 
The complete list of the DS / Sequence data structure is given below:
  • PHP | Ds / Sequence allocate() function
  • PHP | Ds / Sequence apply() function
  • PHP | Ds / Sequence() function 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 / Severse reverse() function
  • PHP | Ds / sequence inverse() 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




Get Solution for free from DataCamp guru