Lines Matching refs:m
10 $m = new MultipleIterator();
13 foreach($m as $value) {
16 var_dump($m->current());
18 $m->attachIterator($iter1);
19 $m->attachIterator($iter2);
20 $m->attachIterator($iter3);
24 var_dump($m->getFlags() === (MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC));
26 foreach($m as $key => $value) {
30 $m->current();
35 $m->key();
42 $m->setFlags(MultipleIterator::MIT_NEED_ANY | MultipleIterator::MIT_KEYS_NUMERIC);
43 var_dump($m->getFlags() === (MultipleIterator::MIT_NEED_ANY | MultipleIterator::MIT_KEYS_NUMERIC));
45 foreach($m as $key => $value) {
51 $m->setFlags(MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC);
54 foreach($m as $key => $value) {
60 $m->setFlags(MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_ASSOC);
61 $m->rewind();
63 $m->current();
70 $m->attachIterator($iter1, "iter1");
71 $m->attachIterator($iter2, b"iter2");
72 $m->attachIterator($iter3, 3);
74 foreach($m as $key => $value) {
81 $m->attachIterator($iter3, new stdClass());
89 $m->attachIterator($iter3, "iter1");
96 var_dump($m->countIterators());
97 var_dump($m->containsIterator($iter2));
98 var_dump($m->detachIterator($iter2));
99 var_dump($m->countIterators());
100 var_dump($m->containsIterator($iter2));
101 foreach($m as $key => $value) {