ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
PHP7高效的数据结构,可以作为[array](https://www.php.net/manual/zh/language.types.array.php)的替代. [https://pecl.php.net/package/ds](https://pecl.php.net/package/ds) * [预定义常量](https://www.php.net/manual/en/ds.constants.php) * [例子](https://www.php.net/manual/en/ds.examples.php) * [集合](https://www.php.net/manual/en/class.ds-collection.php)—集合界面 * [Ds \\ Collection :: clear](https://www.php.net/manual/en/ds-collection.clear.php)—删除所有值 * [Ds \\ Collection :: copy](https://www.php.net/manual/en/ds-collection.copy.php)—返回集合的浅表副本 * [Ds \\ Collection :: isEmpty](https://www.php.net/manual/en/ds-collection.isempty.php)—返回集合是否为空 * [Ds \\ Collection :: toArray](https://www.php.net/manual/en/ds-collection.toarray.php)—将集合转换为数组 * [Hashable](https://www.php.net/manual/en/class.ds-hashable.php)— Hashable界面 * [Ds \\ Hashable :: equals](https://www.php.net/manual/en/ds-hashable.equals.php)—确定对象是否等于当前实例 * [Ds \\ Hashable :: hash](https://www.php.net/manual/en/ds-hashable.hash.php)—返回要用作哈希值的标量值 * [序列](https://www.php.net/manual/en/class.ds-sequence.php)\-序列接口 * [Ds \\ Sequence :: allocate](https://www.php.net/manual/en/ds-sequence.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Sequence ::](https://www.php.net/manual/en/ds-sequence.apply.php)apply-通过对每个值应用回调函数来更新所有值 * [Ds \\ Sequence :: capacity](https://www.php.net/manual/en/ds-sequence.capacity.php)—返回当前容量 * [Ds \\ Sequence :: contains](https://www.php.net/manual/en/ds-sequence.contains.php)—确定序列是否包含给定值 * [Ds \\ Sequence :: filter](https://www.php.net/manual/en/ds-sequence.filter.php)—使用可调用对象来确定要包含的值来创建新序列 * [Ds \\ Sequence :: find](https://www.php.net/manual/en/ds-sequence.find.php)—尝试查找值的索引 * [Ds \\ Sequence :: first](https://www.php.net/manual/en/ds-sequence.first.php)—返回[序列](https://www.php.net/manual/en/ds-sequence.first.php)中的第一个值 * [Ds \\ Sequence :: get](https://www.php.net/manual/en/ds-sequence.get.php)—返回给定索引处的值 * [Ds \\ Sequence ::](https://www.php.net/manual/en/ds-sequence.insert.php)insert-在给定索引处插入值 * [Ds \\ Sequence ::](https://www.php.net/manual/en/ds-sequence.join.php)join-将所有值作为字符串连接在一起 * [Ds \\ Sequence :: last-](https://www.php.net/manual/en/ds-sequence.last.php)返回最后一个值 * [Ds \\ Sequence :: map](https://www.php.net/manual/en/ds-sequence.map.php)—返回对每个值应用回调的结果 * [Ds \\ Sequence :: merge](https://www.php.net/manual/en/ds-sequence.merge.php)—返回将所有给定值添加到序列中的结果 * [Ds \\ Sequence :: pop](https://www.php.net/manual/en/ds-sequence.pop.php)—删除并返回最后一个值 * [Ds \\ Sequence :: push-](https://www.php.net/manual/en/ds-sequence.push.php)将值添加到序列的末尾 * [Ds \\ Sequence :: reduce](https://www.php.net/manual/en/ds-sequence.reduce.php)—使用回调函数将序列减少为单个值 * [Ds \\ Sequence ::](https://www.php.net/manual/en/ds-sequence.remove.php)remove-按索引删除并返回一个值 * [Ds \\ Sequence :: reverse](https://www.php.net/manual/en/ds-sequence.reverse.php)—就地反转序列 * [Ds \\ Sequence :: reversed](https://www.php.net/manual/en/ds-sequence.reversed.php)—返回反向副本 * [Ds \\ Sequence :: rotate](https://www.php.net/manual/en/ds-sequence.rotate.php)—将序列旋转给定的转数 * [Ds \\ Sequence :: set-](https://www.php.net/manual/en/ds-sequence.set.php)更新给定索引处的值 * [Ds \\ Sequence :: shift](https://www.php.net/manual/en/ds-sequence.shift.php)—删除并返回第一个值 * [Ds \\ Sequence :: slice](https://www.php.net/manual/en/ds-sequence.slice.php)—返回给定范围的子序列 * [Ds \\ Sequence ::](https://www.php.net/manual/en/ds-sequence.sort.php)sort-就地排序序列 * [Ds \\ Sequence :: sorted](https://www.php.net/manual/en/ds-sequence.sorted.php)—返回已排序的副本 * [Ds \\ Sequence :: sum](https://www.php.net/manual/en/ds-sequence.sum.php)—返回[序列](https://www.php.net/manual/en/ds-sequence.sum.php)中所有值的总和 * [Ds \\ Sequence :: unshift-](https://www.php.net/manual/en/ds-sequence.unshift.php)将值添加到序列的前面 * [向量](https://www.php.net/manual/en/class.ds-vector.php)— Vector类 * [Ds \\ Vector :: allocate](https://www.php.net/manual/en/ds-vector.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Vector ::](https://www.php.net/manual/en/ds-vector.apply.php)apply-通过将回调函数应用于每个值来更新所有值 * [Ds \\ Vector :: capacity](https://www.php.net/manual/en/ds-vector.capacity.php)—返回当前容量 * [Ds \\ Vector ::](https://www.php.net/manual/en/ds-vector.clear.php)clear-删除所有值 * [Ds \\ Vector :: \_\_ construct](https://www.php.net/manual/en/ds-vector.construct.php)—创建一个新实例 * [Ds \\ Vector :: contains](https://www.php.net/manual/en/ds-vector.contains.php)—确定向量是否包含给定值 * [Ds \\ Vector :: copy](https://www.php.net/manual/en/ds-vector.copy.php)—返回[向量](https://www.php.net/manual/en/ds-vector.copy.php)的浅表副本 * [Ds \\ Vector :: count](https://www.php.net/manual/en/ds-vector.count.php)—返回集合中值的数量 * [Ds \\ Vector :: filter](https://www.php.net/manual/en/ds-vector.filter.php)—使用可调用对象来确定要包含的值来创建新的向量 * [Ds \\ Vector :: find](https://www.php.net/manual/en/ds-vector.find.php)—尝试查找值的索引 * [Ds \\ Vector :: first](https://www.php.net/manual/en/ds-vector.first.php)—返回[向量](https://www.php.net/manual/en/ds-vector.first.php)中的第一个值 * [Ds \\ Vector :: get](https://www.php.net/manual/en/ds-vector.get.php)—返回给定索引处的值 * [Ds \\ Vector :: insert](https://www.php.net/manual/en/ds-vector.insert.php)—在给定索引处插入值 * [Ds \\ Vector :: isEmpty](https://www.php.net/manual/en/ds-vector.isempty.php)—返回向量是否为空 * [Ds \\ Vector :: join](https://www.php.net/manual/en/ds-vector.join.php)—将所有值作为字符串连接在一起 * [Ds \\ Vector :: jsonSerialize](https://www.php.net/manual/en/ds-vector.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Vector :: last](https://www.php.net/manual/en/ds-vector.last.php)—返回最后一个值 * [Ds \\ Vector :: map](https://www.php.net/manual/en/ds-vector.map.php)—返回对每个值应用回调的结果 * [Ds \\ Vector :: merge](https://www.php.net/manual/en/ds-vector.merge.php)—返回将所有给定值添加到向量的结果 * [Ds \\ Vector :: pop](https://www.php.net/manual/en/ds-vector.pop.php)—删除并返回最后一个值 * [Ds \\ Vector :: push](https://www.php.net/manual/en/ds-vector.push.php)—将值添加到向量的末尾 * [Ds \\ Vector :: reduce](https://www.php.net/manual/en/ds-vector.reduce.php)—使用回调函数将向量减小为单个值 * [Ds \\ Vector :: remove](https://www.php.net/manual/en/ds-vector.remove.php)—按索引删除并返回一个值 * [Ds \\ Vector :: reverse](https://www.php.net/manual/en/ds-vector.reverse.php)—就地反转向量 * [Ds \\ Vector :: reversed](https://www.php.net/manual/en/ds-vector.reversed.php)—返回反向副本 * [Ds \\ Vector :: rotate](https://www.php.net/manual/en/ds-vector.rotate.php)—将向量旋转给定的旋转数 * [Ds \\ Vector :: set](https://www.php.net/manual/en/ds-vector.set.php)—更新给定索引处的值 * [Ds \\ Vector :: shift](https://www.php.net/manual/en/ds-vector.shift.php)—删除并返回第一个值 * [Ds \\ Vector :: slice](https://www.php.net/manual/en/ds-vector.slice.php)—返回给定范围的子向量 * [Ds \\ Vector :: sort](https://www.php.net/manual/en/ds-vector.sort.php)—对向量进行原位排序 * [Ds \\ Vector :: sorted](https://www.php.net/manual/en/ds-vector.sorted.php)—返回排序后的副本 * [Ds \\ Vector :: sum](https://www.php.net/manual/en/ds-vector.sum.php)—返回[向量](https://www.php.net/manual/en/ds-vector.sum.php)中所有值的总和 * [Ds \\ Vector :: toArray](https://www.php.net/manual/en/ds-vector.toarray.php)—将向量转换为数组 * [Ds \\ Vector :: unshift](https://www.php.net/manual/en/ds-vector.unshift.php)—将值添加到向量的前面 * [Deque](https://www.php.net/manual/en/class.ds-deque.php)\-Deque类 * [Ds \\ Deque :: allocate](https://www.php.net/manual/en/ds-deque.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Deque :: apply-](https://www.php.net/manual/en/ds-deque.apply.php)通过对每个值应用回调函数来更新所有值 * [Ds \\ Deque :: capacity](https://www.php.net/manual/en/ds-deque.capacity.php)—返回当前容量 * [Ds \\ Deque :: clear](https://www.php.net/manual/en/ds-deque.clear.php)—从双端队列中删除所有值 * [Ds \\ Deque :: \_\_ construct](https://www.php.net/manual/en/ds-deque.construct.php)—创建一个新实例 * [Ds \\ Deque :: contains](https://www.php.net/manual/en/ds-deque.contains.php)—确定双端队列是否包含给定值 * [Ds \\ Deque :: copy](https://www.php.net/manual/en/ds-deque.copy.php)—返回双端队列的浅表副本 * [Ds \\ Deque :: count](https://www.php.net/manual/en/ds-deque.count.php)—返回集合中值的数量 * [Ds \\ Deque :: filter](https://www.php.net/manual/en/ds-deque.filter.php)—使用可调用对象来确定要包括哪些值来创建新的双端队列 * [Ds \\ Deque :: find](https://www.php.net/manual/en/ds-deque.find.php)—尝试查找值的索引 * [Ds \\ Deque :: first](https://www.php.net/manual/en/ds-deque.first.php)—返回双端队列中的第一个值 * [Ds \\ Deque :: get](https://www.php.net/manual/en/ds-deque.get.php)—返回给定索引处的值 * [Ds \\ Deque ::](https://www.php.net/manual/en/ds-deque.insert.php)insert-在给定索引处插入值 * [Ds \\ Deque :: isEmpty](https://www.php.net/manual/en/ds-deque.isempty.php)—返回双端队列是否为空 * [Ds \\ Deque ::](https://www.php.net/manual/en/ds-deque.join.php)join-将所有值作为字符串连接在一起 * [Ds \\ Deque :: jsonSerialize](https://www.php.net/manual/en/ds-deque.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Deque :: last-](https://www.php.net/manual/en/ds-deque.last.php)返回最后一个值 * [Ds \\ Deque :: map](https://www.php.net/manual/en/ds-deque.map.php)—返回对每个值应用回调的结果 * [Ds \\ Deque :: merge](https://www.php.net/manual/en/ds-deque.merge.php)—返回将所有给定值添加到双端队列的结果 * [Ds \\ Deque :: pop](https://www.php.net/manual/en/ds-deque.pop.php)—删除并返回最后一个值 * [Ds \\ Deque :: push-](https://www.php.net/manual/en/ds-deque.push.php)将值添加到双端队列的末尾 * [Ds \\ Deque :: reduce](https://www.php.net/manual/en/ds-deque.reduce.php)—使用回调函数将双端队列减小为单个值 * [Ds \\ Deque :: remove](https://www.php.net/manual/en/ds-deque.remove.php)—按索引删除并返回一个值 * [Ds \\ Deque :: reverse](https://www.php.net/manual/en/ds-deque.reverse.php)—在原位反转双端队列 * [Ds \\ Deque :: reversed](https://www.php.net/manual/en/ds-deque.reversed.php)—返回反向副本 * [Ds \\ Deque :: rotate](https://www.php.net/manual/en/ds-deque.rotate.php)—将双端队列旋转给定的转数 * [Ds \\ Deque :: set-](https://www.php.net/manual/en/ds-deque.set.php)更新给定索引处的值 * [Ds \\ Deque :: shift](https://www.php.net/manual/en/ds-deque.shift.php)—删除并返回第一个值 * [Ds \\ Deque :: slice](https://www.php.net/manual/en/ds-deque.slice.php)—返回给定范围的子双端队列 * [Ds \\ Deque :: sort](https://www.php.net/manual/en/ds-deque.sort.php)—对就地双端队列进行排序 * [Ds \\ Deque :: sorted](https://www.php.net/manual/en/ds-deque.sorted.php)—返回已排序的副本 * [Ds \\ Deque :: sum](https://www.php.net/manual/en/ds-deque.sum.php)—返回双端队列中所有值的总和 * [Ds \\ Deque :: toArray](https://www.php.net/manual/en/ds-deque.toarray.php)—将双端队列转换为数组 * [Ds \\ Deque :: unshift](https://www.php.net/manual/en/ds-deque.unshift.php)—将值添加到双端队列的前面 * [Map](https://www.php.net/manual/en/class.ds-map.php)— Map类 * [Ds \\ Map :: allocate](https://www.php.net/manual/en/ds-map.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Map ::](https://www.php.net/manual/en/ds-map.apply.php)apply-通过将回调函数应用于每个值来更新所有值 * [Ds \\ Map :: capacity](https://www.php.net/manual/en/ds-map.capacity.php)—返回当前容量 * [Ds \\ Map ::](https://www.php.net/manual/en/ds-map.clear.php)clear-删除所有值 * [Ds \\ Map :: \_\_ construct](https://www.php.net/manual/en/ds-map.construct.php)—创建一个新实例 * [Ds \\ Map :: copy](https://www.php.net/manual/en/ds-map.copy.php)—返回[地图](https://www.php.net/manual/en/ds-map.copy.php)的浅表副本 * [Ds \\ Map :: count](https://www.php.net/manual/en/ds-map.count.php)—返回映射中的值数 * [Ds \\ Map :: diff](https://www.php.net/manual/en/ds-map.diff.php)—使用不在另一个地图中的键创建一个新地图 * [Ds \\ Map :: filter](https://www.php.net/manual/en/ds-map.filter.php)—使用可调用对象来确定要包括哪些对的新地图 * [Ds \\ Map :: first](https://www.php.net/manual/en/ds-map.first.php)—返回[地图](https://www.php.net/manual/en/ds-map.first.php)中的第一对 * [Ds \\ Map :: get](https://www.php.net/manual/en/ds-map.get.php)—返回给定键的值 * [Ds \\ Map :: hasKey](https://www.php.net/manual/en/ds-map.haskey.php)—确定地图是否包含给定的键 * [Ds \\ Map :: hasValue](https://www.php.net/manual/en/ds-map.hasvalue.php)—确定地图是否包含给定值 * [Ds \\ Map :: intersect](https://www.php.net/manual/en/ds-map.intersect.php)—通过将关键点与另一个地图[相交来](https://www.php.net/manual/en/ds-map.intersect.php)创建新地图 * [Ds \\ Map :: isEmpty](https://www.php.net/manual/en/ds-map.isempty.php)—返回映射是否为空 * [Ds \\ Map :: jsonSerialize](https://www.php.net/manual/en/ds-map.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Map :: keys-](https://www.php.net/manual/en/ds-map.keys.php)返回一组地图键 * [Ds \\ Map :: ksort-](https://www.php.net/manual/en/ds-map.ksort.php)按键对地图进行排序 * [Ds \\ Map :: ksorted](https://www.php.net/manual/en/ds-map.ksorted.php)—返回一个副本,按键排序 * [Ds \\ Map :: last-](https://www.php.net/manual/en/ds-map.last.php)返回[地图](https://www.php.net/manual/en/ds-map.last.php)的最后一对 * [Ds \\ Map :: map](https://www.php.net/manual/en/ds-map.map.php)—返回对每个值应用回调的结果 * [Ds \\ Map :: merge](https://www.php.net/manual/en/ds-map.merge.php)—返回添加所有给定关联的结果 * [Ds \\ Map :: pairs](https://www.php.net/manual/en/ds-map.pairs.php)—返回包含映射的所有对的序列 * [Ds \\ Map :: put-将](https://www.php.net/manual/en/ds-map.put.php)键与值关联 * [Ds \\ Map :: putAll](https://www.php.net/manual/en/ds-map.putall.php)—将可遍历对象或数组的所有键值对关联 * [Ds \\ Map :: reduce](https://www.php.net/manual/en/ds-map.reduce.php)—使用回调函数将地图缩小为单个值 * [Ds \\ Map :: remove](https://www.php.net/manual/en/ds-map.remove.php)—按键删除并返回一个值 * [Ds \\ Map :: reverse](https://www.php.net/manual/en/ds-map.reverse.php)—在原地反转地图 * [Ds \\ Map :: reversed](https://www.php.net/manual/en/ds-map.reversed.php)—返回反向副本 * [Ds \\ Map :: skip](https://www.php.net/manual/en/ds-map.skip.php)—返回给定位置索引处的对 * [Ds \\ Map :: slice](https://www.php.net/manual/en/ds-map.slice.php)—返回由起始索引和长度定义的映射的子集 * [Ds \\ Map :: sort](https://www.php.net/manual/en/ds-map.sort.php)—按值对地图进行排序 * [Ds \\ Map :: sorted](https://www.php.net/manual/en/ds-map.sorted.php)—返回一个副本,按值排序 * [Ds \\ Map :: sum](https://www.php.net/manual/en/ds-map.sum.php)—返回映射中所有值的总和 * [Ds \\ Map :: toArray](https://www.php.net/manual/en/ds-map.toarray.php)—将地图转换为数组 * [Ds \\ Map :: union](https://www.php.net/manual/en/ds-map.union.php)—使用当前实例和另一个映射中的值创建一个新映射 * [Ds \\ Map :: values](https://www.php.net/manual/en/ds-map.values.php)—返回[地图值](https://www.php.net/manual/en/ds-map.values.php)的序列 * [Ds \\ Map :: xor](https://www.php.net/manual/en/ds-map.xor.php)—使用当前实例或另一个映射的键创建一个新映射,但不能同时使用两者 * [配对](https://www.php.net/manual/en/class.ds-pair.php)—配对类 * [Ds \\ Pair ::](https://www.php.net/manual/en/ds-pair.clear.php)clear-删除所有值 * [Ds \\ Pair :: \_\_ construct](https://www.php.net/manual/en/ds-pair.construct.php)—创建一个新实例 * [Ds \\ Pair :: copy](https://www.php.net/manual/en/ds-pair.copy.php)—返回该对的浅表副本 * [Ds \\ Pair :: isEmpty](https://www.php.net/manual/en/ds-pair.isempty.php)—返回该对是否为空 * [Ds \\ Pair :: jsonSerialize](https://www.php.net/manual/en/ds-pair.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Pair :: toArray](https://www.php.net/manual/en/ds-pair.toarray.php)—将对转换为数组 * [Set](https://www.php.net/manual/en/class.ds-set.php)— Set类 * [Ds \\ Set ::](https://www.php.net/manual/en/ds-set.add.php)add-将值添加到集合中 * [Ds \\ Set :: allocate](https://www.php.net/manual/en/ds-set.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Set :: capacity](https://www.php.net/manual/en/ds-set.capacity.php)—返回当前容量 * [Ds \\ Set ::](https://www.php.net/manual/en/ds-set.clear.php)clear-删除所有值 * [Ds \\ Set :: \_\_ construct](https://www.php.net/manual/en/ds-set.construct.php)—创建一个新实例 * [Ds \\ Set :: contains](https://www.php.net/manual/en/ds-set.contains.php)—确定该集合是否包含所有值 * [Ds \\ Set :: copy](https://www.php.net/manual/en/ds-set.copy.php)—返回集合的浅表副本 * [Ds \\ Set :: count](https://www.php.net/manual/en/ds-set.count.php)—返回集合中值的数量 * [Ds \\ Set :: diff](https://www.php.net/manual/en/ds-set.diff.php)—使用另一个集合中没有的值创建一个新集合 * [Ds \\ Set :: filter](https://www.php.net/manual/en/ds-set.filter.php)—使用可调用对象来确定要包括哪些值来创建一个新集合 * [Ds \\ Set :: first](https://www.php.net/manual/en/ds-set.first.php)—返回[集合](https://www.php.net/manual/en/ds-set.first.php)中的第一个值 * [Ds \\ Set :: get](https://www.php.net/manual/en/ds-set.get.php)—返回给定索引处的值 * [Ds \\ Set :: intersect-](https://www.php.net/manual/en/ds-set.intersect.php)通过将值与另一个集合[相交来](https://www.php.net/manual/en/ds-set.intersect.php)创建一个新集合 * [Ds \\ Set :: isEmpty](https://www.php.net/manual/en/ds-set.isempty.php)—返回集合是否为空 * [Ds \\ Set :: join](https://www.php.net/manual/en/ds-set.join.php)—将所有值作为字符串连接在一起 * [Ds \\ Set :: jsonSerialize](https://www.php.net/manual/en/ds-set.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Set :: last](https://www.php.net/manual/en/ds-set.last.php)—返回[集合](https://www.php.net/manual/en/ds-set.last.php)中的最后一个值 * [Ds \\ Set :: merge](https://www.php.net/manual/en/ds-set.merge.php)—返回将所有给定值添加到集合中的结果 * [Ds \\ Set :: reduce](https://www.php.net/manual/en/ds-set.reduce.php)—使用回调函数将集合减少为单个值 * [Ds \\ Set :: remove](https://www.php.net/manual/en/ds-set.remove.php)—从集合中删除所有给定的值 * [Ds \\ Set :: reverse](https://www.php.net/manual/en/ds-set.reverse.php)—反转设置 * [Ds \\ Set :: reversed](https://www.php.net/manual/en/ds-set.reversed.php)—返回反向副本 * [Ds \\ Set :: slice](https://www.php.net/manual/en/ds-set.slice.php)—返回给定范围的子集 * [Ds \\ Set ::](https://www.php.net/manual/en/ds-set.sort.php)sort-对集合进行就地排序 * [Ds \\ Set :: sorted](https://www.php.net/manual/en/ds-set.sorted.php)—返回排序后的副本 * [Ds \\ Set :: sum](https://www.php.net/manual/en/ds-set.sum.php)—返回集合中所有值的总和 * [Ds \\ Set :: toArray](https://www.php.net/manual/en/ds-set.toarray.php)—将集合转换为数组 * [Ds \\ Set :: union](https://www.php.net/manual/en/ds-set.union.php)—使用当前实例和另一个集合中的值创建一个新集合 * [Ds \\ Set :: xor](https://www.php.net/manual/en/ds-set.xor.php)—使用当前实例或另一个集中的值创建一个新集合,但不要同时使用这两个值 * [堆栈](https://www.php.net/manual/en/class.ds-stack.php)—堆栈类 * [Ds \\ Stack :: allocate](https://www.php.net/manual/en/ds-stack.allocate.php)—为所需容量分配足够的内存 * [Ds \\ Stack :: capacity](https://www.php.net/manual/en/ds-stack.capacity.php)—返回当前容量 * [Ds \\ Stack ::](https://www.php.net/manual/en/ds-stack.clear.php)clear-删除所有值 * [Ds \\ Stack :: \_\_ construct](https://www.php.net/manual/en/ds-stack.construct.php)—创建一个新实例 * [Ds \\ Stack :: copy](https://www.php.net/manual/en/ds-stack.copy.php)—返回[堆栈](https://www.php.net/manual/en/ds-stack.copy.php)的浅表副本 * [Ds \\ Stack :: count](https://www.php.net/manual/en/ds-stack.count.php)—返回堆栈中的值数 * [Ds \\ Stack :: isEmpty](https://www.php.net/manual/en/ds-stack.isempty.php)—返回堆栈是否为空 * [Ds \\ Stack :: jsonSerialize](https://www.php.net/manual/en/ds-stack.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Stack :: peek-](https://www.php.net/manual/en/ds-stack.peek.php)返回堆栈顶部的值 * [Ds \\ Stack :: pop](https://www.php.net/manual/en/ds-stack.pop.php)—删除并返回[栈顶](https://www.php.net/manual/en/ds-stack.pop.php)的值 * [Ds \\ Stack :: push](https://www.php.net/manual/en/ds-stack.push.php)—将值[压入](https://www.php.net/manual/en/ds-stack.push.php)堆栈 * [Ds \\ Stack :: toArray](https://www.php.net/manual/en/ds-stack.toarray.php)—将堆栈转换为数组 * [Queue](https://www.php.net/manual/en/class.ds-queue.php)—队列类 * [Ds \\ Queue :: allocate](https://www.php.net/manual/en/ds-queue.allocate.php)—为所需的容量分配足够的内存 * [Ds \\ Queue :: capacity](https://www.php.net/manual/en/ds-queue.capacity.php)—返回当前容量 * [Ds \\ Queue ::](https://www.php.net/manual/en/ds-queue.clear.php)clear-删除所有值 * [Ds \\ Queue :: \_\_ construct](https://www.php.net/manual/en/ds-queue.construct.php)—创建一个新实例 * [Ds \\ Queue :: copy](https://www.php.net/manual/en/ds-queue.copy.php)—返回[队列](https://www.php.net/manual/en/ds-queue.copy.php)的浅表副本 * [Ds \\ Queue :: count](https://www.php.net/manual/en/ds-queue.count.php)—返回队列中的值数 * [Ds \\ Queue :: isEmpty](https://www.php.net/manual/en/ds-queue.isempty.php)—返回队列是否为空 * [Ds \\ Queue :: jsonSerialize](https://www.php.net/manual/en/ds-queue.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ Queue :: peek-](https://www.php.net/manual/en/ds-queue.peek.php)返回[队列开头](https://www.php.net/manual/en/ds-queue.peek.php)的值 * [Ds \\ Queue :: pop](https://www.php.net/manual/en/ds-queue.pop.php)—删除并返回[队列](https://www.php.net/manual/en/ds-queue.pop.php)开头的值 * [Ds \\ Queue ::](https://www.php.net/manual/en/ds-queue.push.php)push-将值推入队列 * [Ds \\ Queue :: toArray](https://www.php.net/manual/en/ds-queue.toarray.php)—将队列转换为数组 * [PriorityQueue](https://www.php.net/manual/en/class.ds-priorityqueue.php)— PriorityQueue类 * [Ds \\ PriorityQueue :: allocate](https://www.php.net/manual/en/ds-priorityqueue.allocate.php)—为所需容量分配足够的内存 * [Ds \\ PriorityQueue :: capacity](https://www.php.net/manual/en/ds-priorityqueue.capacity.php)—返回当前容量 * [Ds \\ PriorityQueue ::](https://www.php.net/manual/en/ds-priorityqueue.clear.php)clear-删除所有值 * [Ds \\ PriorityQueue :: \_\_ construct](https://www.php.net/manual/en/ds-priorityqueue.construct.php)—创建一个新实例 * [Ds \\ PriorityQueue :: copy](https://www.php.net/manual/en/ds-priorityqueue.copy.php)—返回队列的浅表副本 * [Ds \\ PriorityQueue :: count](https://www.php.net/manual/en/ds-priorityqueue.count.php)—返回队列中的值数 * [Ds \\ PriorityQueue :: isEmpty](https://www.php.net/manual/en/ds-priorityqueue.isempty.php)—返回队列是否为空 * [Ds \\ PriorityQueue :: jsonSerialize](https://www.php.net/manual/en/ds-priorityqueue.jsonserialize.php)—返回可以转换为JSON的表示形式 * [Ds \\ PriorityQueue :: peek-](https://www.php.net/manual/en/ds-priorityqueue.peek.php)返回队列[开头](https://www.php.net/manual/en/ds-priorityqueue.peek.php)的值 * [Ds \\ PriorityQueue :: pop](https://www.php.net/manual/en/ds-priorityqueue.pop.php)—删除并返回优先级最高的值 * [Ds \\ PriorityQueue ::](https://www.php.net/manual/en/ds-priorityqueue.push.php)push-将值推入队列 * [Ds \\ PriorityQueue :: toArray](https://www.php.net/manual/en/ds-priorityqueue.toarray.php)—将队列转换为数组