preg_grep

 array preg_grep ( string $pattern , array $input [, int $flags = 0 ] ) 

説明

Returns the array consisting of the elements of the input array that match the given pattern.

戻り値

Returns an array indexed using the keys from the input array.