Lines Matching refs:it
8 $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($ar));
11 var_dump($it->getMaxDepth());
12 foreach($it as $v) echo $it->getDepth() . ": $v\n";
15 $it->setMaxDepth(2);
16 var_dump($it->getMaxDepth());
17 foreach($it as $v) echo $it->getDepth() . ": $v\n";
20 $it->setMaxDepth();
21 var_dump($it->getMaxDepth());
22 foreach($it as $v) echo $it->getDepth() . ": $v\n";
25 $it->setMaxDepth(3);
26 var_dump($it->getMaxDepth());
27 foreach($it as $v) echo $it->getDepth() . ": $v\n";
30 $it->setMaxDepth(5);
31 var_dump($it->getMaxDepth());
32 foreach($it as $v) echo $it->getDepth() . ": $v\n";
35 $it->setMaxDepth(0);
36 var_dump($it->getMaxDepth());
37 foreach($it as $v) echo $it->getDepth() . ": $v\n";
40 $it->setMaxDepth(-1);
41 var_dump($it->getMaxDepth());
42 $it->setMaxDepth(4);
44 $it->setMaxDepth(-2);
48 var_dump($it->getMaxDepth());