Lines Matching refs:queue
7 $queue = new SplQueue();
10 $queue->dequeue();
15 $queue->shift();
22 $queue->enqueue($a);
24 $queue->enqueue(&$a);
26 echo $queue->dequeue()."\n";
27 echo $queue->dequeue()."\n";
30 $queue->enqueue(1);
31 $queue->enqueue(2);
32 echo $queue->top()."\n";
35 foreach ($queue as $elem) {
40 $queue->enqueue(NULL);
41 $queue->enqueue(NULL);
42 echo count($queue)."\n";
43 echo $queue->count()."\n";
44 var_dump($queue->dequeue());
45 var_dump($queue->dequeue());
48 $queue->enqueue(2);
49 $queue_clone = clone $queue;
51 echo count($queue)."\n";