Change language

PHP DS / Sequence Function Reference

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

Shop

Best laptop for Sims 4

$

Best laptop for Zoom

$499

Best laptop for Minecraft

$590

Best laptop for engineering student

$

Best laptop for development

$

Best laptop for Cricut Maker

$

Best laptop for hacking

$890

Best laptop for Machine Learning

$950

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

News

Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method