📜  PHP Ds\Vector 函数完整参考

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

PHP Ds\Vector 函数完整参考

矢量数据结构用于将值序列存储在连续的内存缓冲区中,该缓冲区会自动增长和缩小。矢量数据结构将索引值映射到其索引缓冲区,并且增长因子未绑定到特定的倍数或指数。

PHP 7 中的高效数据结构提供了数组的替代方案。

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

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

pecl install ds

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

  • PHP | Ds\Vector allocate()函数
  • PHP | Ds\Vector apply()函数
  • PHP | Ds\向量容量()函数
  • PHP | Ds\Vector clear()函数
  • PHP | Ds\Vector __construct()函数
  • PHP | Ds\Vector contains()函数
  • PHP | Ds\Vector copy()函数
  • PHP | Ds\向量计数()函数
  • PHP | Ds\Vector filter()函数
  • PHP | Ds\Vector find()函数
  • PHP | Ds\Vector first()函数
  • PHP | Ds\Vector get()函数
  • PHP | Ds\Vector insert()函数
  • PHP | Ds\Vector isEmpty()函数
  • PHP | Ds\Vector join()函数
  • PHP | Ds\Vector jsonSerialize()函数
  • PHP | Ds\Vector last()函数
  • PHP | Ds\Vector map()函数
  • PHP | Ds\Vector merge()函数
  • PHP | Ds\Vector pop()函数
  • PHP | Ds\Vector push()函数
  • PHP | Ds\Vector reduce()函数
  • PHP | Ds\Vector remove()函数
  • PHP | Ds\Vector reverse()函数
  • PHP | Ds\Vector rotate()函数
  • PHP | Ds\Vector set()函数
  • PHP | Ds\向量移位()函数
  • PHP | Ds\Vector slice()函数
  • PHP | Ds\向量排序()函数
  • PHP | Ds\Vector sorted()函数
  • PHP | Ds\Vector sum()函数
  • PHP | Ds\Vector toArray()函数
  • PHP | Ds\Vector unshift()函数