Lines Matching refs:queue
5 $queue = new SplQueue();
8 $queue->dequeue();
13 $queue->shift();
20 $queue->enqueue($a);
21 echo $queue->dequeue()."\n";
24 $queue->enqueue(1);
25 $queue->enqueue(2);
26 echo $queue->top()."\n";
29 foreach ($queue as $elem) {
34 $queue->enqueue(NULL);
35 $queue->enqueue(NULL);
36 echo count($queue)."\n";
37 echo $queue->count()."\n";
38 var_dump($queue->dequeue());
39 var_dump($queue->dequeue());
42 $queue->enqueue(2);
43 $queue_clone = clone $queue;
45 echo count($queue)."\n";