23 $this->queue = array();
30 return (
bool)array_push($this->queue,
$item);
37 return array_shift($this->queue);
44 $this->queue = array();
51 return count($this->queue);
enqueue($item)
{Add an item to the queue.Item to add to queue bool}
clear()
{Clear all items from the queue.void}
dequeue()
{Remove an item from the queue.mixed}
__construct()
Create a queue.
size()
{Get the size of the queue.int}