📜  PHP Ds\Set 函数完整参考

📅  最后修改于: 2022-05-13 01:56:49.563000             🧑  作者: Mango

PHP Ds\Set 函数完整参考

Set 是唯一值的集合。 Ds\Set 的实现类似于创建哈希表的 Ds\Map。 Ds\Set 的值用作键,映射的值被忽略。

要求:扩展和兼容性 polyfill 都需要PHP 7。

安装:使用 PECL 扩展安装数据结构的最简单方法。

pecl install ds

数据结构 DS\Set 的完整列表如下:

  • PHP | Ds\Set add()函数
  • PHP | Ds\Set allocate()函数
  • PHP | Ds\设置容量()函数
  • PHP | Ds\Set clear()函数
  • PHP | Ds\Set __construct()函数
  • PHP | Ds\Set contains()函数
  • PHP | Ds\Set copy()函数
  • PHP Ds\Set count()函数
  • PHP | Ds\Set diff()函数
  • PHP | Ds\Set filter()函数
  • PHP | Ds\Set first()函数
  • PHP Ds\Set get()函数
  • PHP | Ds\Set intersect()函数
  • PHP Ds\Set isEmpty()函数
  • PHP | Ds\Set join()函数
  • PHP | Ds\Set last()函数
  • PHP | Ds\Set merge()函数
  • PHP | Ds\Set reduce()函数
  • PHP Ds\Set remove()函数
  • PHP Ds\Set reverse()函数
  • PHP Ds\Set reversed()函数
  • PHP | Ds\Set slice()函数
  • PHP Ds\Set sort()函数
  • PHP | Ds\Set sorted()函数
  • PHP Ds\Set sum()函数
  • PHP Ds\Set toArray()函数
  • PHP | Ds\Set union()函数
  • PHP | Ds\Set xor()函数