php8.5
Home/ Manual/ reference / ds/ The Queue class

The Queue class

A Queue is a “first in, first out” or “FIFO” collection that only allows access to the value at the front of the queue and iterates in that order, destructively.

Intro

A Queue is a “first in, first out” or “FIFO” collection that only allows access to the value at the front of the queue and iterates in that order, destructively.

Class synopsis

class Ds\Queue { }

Predefined Constants

Ds\Queue::MIN_CAPACITY

Changelog

VersionDescription
PECL ds 1.3.0The class now implements ArrayAccess.

Queue

Source: reference/ds/ds.queue.xml · from the official PHP manual (php/doc-en)