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

SplQueue::enqueue

PHP function Edit on GitHub ✎

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

Adds an element to the queue

Description

SplQueue::enqueue(mixed $value): void

Enqueues value at the end of the queue.

Note

SplQueue::enqueue is an alias of SplDoublyLinkedList::push.

Parameters

value

The value to enqueue.

Return Values

Void

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