PHP | Ds\Set Functions Complete Reference
Set is the collection of unique values. The implementation of Ds\Set is similar to the Ds\Map which creates a hash table. The values of Ds\Set are used as key and the mapped values are ignored.
Requirements: PHP 7 is required for both extension and the compatibility polyfill.
Installation: The easiest way to install data structure by using the PECL extension.
pecl install ds
The complete list of data structure DS\Set are given below:
- PHP | Ds\Set add() Function
- PHP | Ds\Set allocate() Function
- PHP | Ds\Set capacity() Function
- PHP | Ds\Set clear() Function
- PHP | Ds\Set __construct() Function
- PHP | Ds\Set contains() Function
- PHP | Ds\Set copy() Function
- PHP Ds\Set count() Function
- PHP | Ds\Set diff() Function
- PHP | Ds\Set filter() Function
- PHP | Ds\Set first() Function
- PHP Ds\Set get() Function
- PHP | Ds\Set intersect() Function
- PHP Ds\Set isEmpty() Function
- PHP | Ds\Set join() Function
- PHP | Ds\Set last() Function
- PHP | Ds\Set merge() Function
- PHP | Ds\Set reduce() Function
- PHP Ds\Set remove() Function
- PHP Ds\Set reverse() Function
- PHP Ds\Set reversed() Function
- PHP | Ds\Set slice() Function
- PHP Ds\Set sort() Function
- PHP | Ds\Set sorted() Function
- PHP Ds\Set sum() Function
- PHP Ds\Set toArray() Function
- PHP | Ds\Set union() Function
- PHP | Ds\Set xor() Function