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