Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 1008) sorted by relevance

12345678910>>...41

/PHP-8.2/ext/spl/tests/
H A Diterator_028.phpt12 foreach($it as $v) echo $it->getDepth() . ": $v\n";
15 $it->setMaxDepth(2);
17 foreach($it as $v) echo $it->getDepth() . ": $v\n";
20 $it->setMaxDepth();
22 foreach($it as $v) echo $it->getDepth() . ": $v\n";
25 $it->setMaxDepth(3);
27 foreach($it as $v) echo $it->getDepth() . ": $v\n";
30 $it->setMaxDepth(5);
32 foreach($it as $v) echo $it->getDepth() . ": $v\n";
35 $it->setMaxDepth(0);
[all …]
H A Diterator_027.phpt9 $it = new RecursiveIteratorIterator($it);
10 $it = new CachingIterator($it, CachingIterator::FULL_CACHE);
12 foreach($it as $k=>$v)
27 $it[2] = 'foo';
28 $it[3] = 'bar';
29 $it['baz'] = '25';
31 var_dump($it[2]);
32 var_dump($it[3]);
35 unset($it[0]);
36 unset($it[2]);
[all …]
H A Dbug65387.phpt6 $it = new ArrayIterator([1, 2, 3]);
8 $it[] = $it;
17 private $it;
20 $this->it = new CallbackFilterIterator($it, function($elem) {
33 $it = new ArrayIterator();
39 $it = new RecursiveArrayIterator();
45 $it = new ArrayIterator();
47 $it[] = $it2;
48 $it2->append($it);
53 $it[] = $it2;
[all …]
H A Diterator_011.phpt15 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D'));
16 $it = new InfiniteIterator($it);
17 $it = new LimitIterator($it, 2, 5);
18 foreach($it as $val=>$key)
25 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D'));
26 $it = new LimitIterator($it, 1, 2);
27 $it = new InfiniteIterator($it);
28 $it = new LimitIterator($it, 2, 5);
29 foreach($it as $val=>$key)
H A Diterator_025.phpt23 foreach($it as $v) echo "$v\n";
27 foreach($it as $v) echo "$v\n";
31 $it->rewind();
32 foreach($it as $v) echo "$v\n";
33 var_dump($it->valid());
37 $it->rewind();
38 while($it->valid())
41 $it->next();
44 $it->rewind();
45 while($it->valid())
[all …]
H A Dfilesystemiterator_flags.phpt8 $it = new FileSystemIterator(".");
9 printflags($it);
11 $it->setFlags(FileSystemIterator::CURRENT_AS_SELF |
15 printflags($it);
17 $it->setFlags(-1);
18 printflags($it);
20 function printflags($it) {
21 printf("%08X\n", $it->getFlags());
22 printf("%08X\n", ($it->getFlags() & FileSystemIterator::CURRENT_MODE_MASK));
23 printf("%08X\n", ($it->getFlags() & FileSystemIterator::KEY_MODE_MASK));
[all …]
H A Darray_014.phpt7 var_dump($it->count());
8 $it->seek(5);
9 var_dump($it->current());
10 $it->seek(4);
11 var_dump($it->current());
14 $it->seek(-1);
15 var_dump($it->current());
24 $it->seek(12);
25 var_dump($it->current());
33 foreach($it as $v)
[all …]
H A Diterator_030.phpt6 $it = new EmptyIterator;
8 var_dump($it->valid());
9 $it->rewind();
10 var_dump($it->valid());
11 $it->next();
12 var_dump($it->valid());
16 var_dump($it->key());
25 var_dump($it->current());
32 var_dump($it->valid());
H A Darray_012.phpt9 $it = new ArrayIterator($a);
11 var_dump($it->count());
12 foreach($it as $key => $val)
15 var_dump($it->count());
17 var_dump($it->count());
31 $it = new ArrayIterator($o);
33 var_dump($it->count());
34 foreach($it as $key => $val)
37 var_dump($it->count());
39 var_dump($it->count());
H A Diterator_032.phpt6 $it = new LimitIterator(new ArrayIterator(array(1,2,3,4)), 1, 2);
8 foreach($it as $k=>$v)
11 var_dump($it->getPosition());
16 $it->seek(0);
23 $it->seek(2);
24 var_dump($it->current());
28 $it->seek(3);
35 $it->next();
36 var_dump($it->valid());
H A Drecursive_tree_iterator_setpostfix.phpt27 $it = new RecursiveArrayIterator($arr);
28 $it = new RecursiveTreeIterator($it);
31 echo $it->getPostfix();
35 $it->setPostfix("POSTFIX");
36 echo $it->getPostfix();
40 foreach($it as $k => $v) {
45 $it->setPostfix("");
46 echo $it->getPostfix();
50 foreach($it as $k => $v) {
H A Dbug67359.phpt8 $it = new recursiveIteratorIterator( $rdi );
9 $it->seek(1);
10 while( $it->valid())
12 if( $it->isFile() )
14 $it->current();
17 $it->next();
20 $it->current();
H A Diterator_045.phpt67 var_dump($it->offsetUnset(0));
79 $it->testSet($checks);
80 $it->show();
81 $it->testUnset($unsets);
82 $it->show();
83 $it->fill();
84 $it->show();
85 $it->testSet($checks);
86 $it->show();
87 $it->testUnset($unsets);
[all …]
H A Diterator_040.phpt15 $it = new RecursiveArrayIterator($ar);
16 $it = new MyRecursiveFilterIterator($it);
17 $it = new RecursiveIteratorIterator($it);
19 foreach($it as $k => $v)
22 var_dump($it->getDepth());
H A DRecursiveCallbackFilterIteratorTest.phpt42 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5)));
43 $it = new RecursiveCallbackFilterIterator($it, $callback);
44 $it = new RecursiveIteratorIterator($it);
48 foreach($it as $value) {
54 $it = new RecursiveArrayIterator(array(1, array(2, 3), array(4, 5)));
55 $it = new RecursiveCallbackFilterIterator($it, $test());
56 $it = new RecursiveIteratorIterator($it);
59 foreach($it as $value) {
H A Dgh16337.phpt32 Heap cannot be changed when it is already being modified.
33 Heap cannot be changed when it is already being modified.
35 Heap cannot be changed when it is already being modified.
36 Heap cannot be changed when it is already being modified.
38 Heap cannot be changed when it is already being modified.
39 Heap cannot be changed when it is already being modified.
41 Heap cannot be changed when it is already being modified.
42 Heap cannot be changed when it is already being modified.
44 Heap cannot be changed when it is already being modified.
45 Heap cannot be changed when it is already being modified.
[all …]
H A Dspl_006.phpt6 $it = new AppendIterator();
7 $it->append(new ArrayIterator(array(1,2)));
8 $it->append(new ArrayIterator(array(2,3)));
10 var_dump(iterator_to_array($it));
11 var_dump(iterator_to_array($it, false));
12 var_dump(iterator_to_array($it, true));
H A Drecursive_tree_iterator_007.phpt11 public $it;
12 function __construct($it) {
13 $this->it = new RecursiveArrayIterator($it);
16 return $this->it;
20 $it = new RecursiveArrayIteratorAggregated($ary);
22 foreach(new RecursiveTreeIterator($it) as $k => $v) {
H A Diterator_026.phpt8 $it = new RecursiveArrayIterator($ar);
9 $it = new RecursiveCachingIterator($it);
10 $it = new RecursiveIteratorIterator($it);
12 foreach($it as $k=>$v)
15 echo "hasNext: " . ($it->getInnerIterator()->hasNext() ? "yes" : "no") . "\n";
/PHP-8.2/Zend/tests/
H A Dgh16371.phpt7 $it = $map->getIterator();
11 var_dump($it->key());
12 var_dump($it->current());
13 var_dump($it->valid());
21 $it = $map->getIterator();
22 var_dump($it->key());
23 var_dump($it->current());
24 var_dump($it->valid());
28 $it->next();
29 var_dump($it->key());
[all …]
H A Dbug76901.phpt6 $it = new ArrayIterator([1, 2, 3]);
7 $it = new IteratorIterator($it);
8 foreach ($it as $v) {
9 if (method_exists($it, 'offsetGet')) {
10 var_dump($it->offsetGet(0));
/PHP-8.2/Zend/tests/type_declarations/
H A Dtyped_properties_067.phpt7 public ?iterable $it = null;
14 arr($obj->it);
15 var_dump($obj->it);
16 array_shift($obj->it);
17 var_dump($obj->it);
18 parse_str("foo=bar", $obj->it);
19 var_dump($obj->it);
20 $obj->it = [];
21 var_dump($obj->it);
/PHP-8.2/ext/intl/tests/
H A Dcpbi_clone_equality.phpt13 $it = IntlBreakIterator::createCodePointInstance();
14 $it->setText($text);
16 $it_clone = clone $it;
17 var_dump($it == $it_clone);
19 $it->setText($text2 );
20 var_dump($it == $it_clone);
23 var_dump($it == $it_clone);
/PHP-8.2/ext/zlib/tests/
H A Dreadgzfile_variation12.phpt27 all I know is that you can realize it
29 as it turns around
30 and I know that it descends down on me
34 all I know is that you can realize it
36 as it turns around
37 and I know that it descends down on me
41 all I know is that you can realize it
43 as it turns around
44 and I know that it descends down on me
48 all I know is that you can realize it
[all …]
H A Dreadgzfile_variation9.phpt26 all I know is that you can realize it
28 as it turns around
29 and I know that it descends down on me
33 all I know is that you can realize it
35 as it turns around
36 and I know that it descends down on me
40 all I know is that you can realize it
42 as it turns around
43 and I know that it descends down on me
47 all I know is that you can realize it
[all …]

Completed in 16 milliseconds

12345678910>>...41