|
RegexIterator::setPregFlagsSets the regular expression flags. Description
public void RegexIterator::setPregFlags
( int
$preg_flags
)Sets the regular expression flags. Parameters
Return ValuesNo value is returned. Examples
Example #1 RegexIterator::setPregFlags example Creates a new RegexIterator that filters all entries with where the array key starts with 'test'.
<?php The above example will output something similar to: array(1) { [0]=> array(2) { [0]=> string(4) "test" [1]=> int(0) } } array(1) { [0]=> array(2) { [0]=> string(4) "test" [1]=> int(0) } } See Also
|