The SplQueue class
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
Introduction
The SplQueue class provides the main functionalities of a queue implemented using a doubly linked list.
Class synopsis
Table of Contents
- SplQueue::__construct — Constructs a new queue implemented using a doubly linked list
- SplQueue::dequeue — Dequeues a node from the queue
- SplQueue::enqueue — Adds an element to the queue
- SplQueue::setIteratorMode — Sets the mode of iteration