preg_grepReturn array entries that match the pattern Description
array preg_grep
( string
$pattern
, array $input
[, int $flags = 0
] )
Returns the array consisting of the elements of the
Parameters
Return Values
Returns an array indexed using the keys from the
Examples
Example #1 preg_grep example
<?php |