|
RegexIterator::acceptGet accept status Description
public bool RegexIterator::accept
( void
)
Matches (string) RegexIterator::current (or RegexIterator::key if the RegexIterator::USE_KEY flag is set) against the regular expression. ParametersThis function has no parameters. Return Values
Examples
Example #1 RegexIterator::accept example This example shows that only items matching the regular expression are accepted.
<?php The above example will output: Bob Charlie David |