RecursiveRegexIterator::__constructCreates a new RecursiveRegexIterator. Description
public RecursiveRegexIterator::__construct
( RecursiveIterator
$iterator
, string $regex
[, int $mode = self::MATCH
[, int $flags = 0
[, int $preg_flags = 0
]]] )Creates a new regular expression iterator. Parameters
Examples
Example #1 RecursiveRegexIterator::__construct example Creates a new RegexIterator that filters all strings that start with 'test'.
<?php The above example will output something similar to: No children Children: test4 test5 See Also
|