php8.5
Home/ Manual/ spl / splqueue/ SplQueue::dequeue

SplQueue::dequeue

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Dequeues a node from the queue

Description

SplQueue::dequeue(): mixed

Dequeues value from the top of the queue.

Note

SplQueue::dequeue is an alias of SplDoublyLinkedList::shift.

Parameters Parameters

Return Values

The value of the dequeued node.

Source: reference/spl/splqueue/dequeue.xml · from the official PHP manual (php/doc-en)