Lines Matching refs:m
10 $m = new MultipleIterator();
13 foreach($m as $value) {
17 var_dump($m->current());
22 var_dump($m->key());
27 $m->attachIterator($iter1);
28 $m->attachIterator($iter2);
29 $m->attachIterator($iter3);
33 var_dump($m->getFlags() === (MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC));
35 foreach($m as $key => $value) {
39 $m->current();
44 $m->key();
51 $m->setFlags(MultipleIterator::MIT_NEED_ANY | MultipleIterator::MIT_KEYS_NUMERIC);
52 var_dump($m->getFlags() === (MultipleIterator::MIT_NEED_ANY | MultipleIterator::MIT_KEYS_NUMERIC));
54 foreach($m as $key => $value) {
60 $m->setFlags(MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_NUMERIC);
63 foreach($m as $key => $value) {
69 $m->setFlags(MultipleIterator::MIT_NEED_ALL | MultipleIterator::MIT_KEYS_ASSOC);
70 $m->rewind();
72 $m->current();
79 $m->attachIterator($iter1, "iter1");
80 $m->attachIterator($iter2, "iter2");
81 $m->attachIterator($iter3, 3);
83 foreach($m as $key => $value) {
90 $m->attachIterator($iter3, new stdClass());
98 $m->attachIterator($iter3, "iter1");
105 var_dump($m->countIterators());
106 var_dump($m->containsIterator($iter2));
107 var_dump($m->detachIterator($iter2));
108 var_dump($m->countIterators());
109 var_dump($m->containsIterator($iter2));
110 foreach($m as $key => $value) {