Lines Matching refs:dll
5 $dll = new SplDoublyLinkedList();
8 $dll->add(2,5);
13 $dll->add(0,6); // 6
14 $dll->add(0,3); // 3 6
16 $dll->add(1,4); // 3 4 6
17 $dll->add(2,5); // 3 4 5 6
18 $dll->unshift(2); // 2 3 5 4 6
20 $dll->add(0,1); // 1 2 3 4 5 6
21 $dll->add(6,7); // 1 2 3 4 5 6 7
23 echo count($dll)."\n";
25 echo $dll->pop()."\n";
26 echo $dll->pop()."\n";
27 echo $dll->pop()."\n";
28 echo $dll->pop()."\n";
29 echo $dll->pop()."\n";
30 echo $dll->pop()."\n";
31 echo $dll->pop()."\n";