Lines Matching refs:RegexIterator
2 SPL: RegexIterator::getMode() and setMode() basic tests
10 $regexIterator = new RegexIterator($iterator, "/f/");
12 var_dump($regexIterator->getMode() === RegexIterator::MATCH);
14 $regexIterator->setMode(RegexIterator::MATCH);
15 var_dump($regexIterator->getMode() === RegexIterator::MATCH);
17 $regexIterator->setMode(RegexIterator::GET_MATCH);
18 var_dump($regexIterator->getMode() === RegexIterator::GET_MATCH);
20 $regexIterator->setMode(RegexIterator::ALL_MATCHES);
21 var_dump($regexIterator->getMode() === RegexIterator::ALL_MATCHES);
23 $regexIterator->setMode(RegexIterator::SPLIT);
24 var_dump($regexIterator->getMode() === RegexIterator::SPLIT);