KapostService::preg_grep_keys
Gets all of the values who's keys match a given expression
Signature
private function preg_grep_keys(string
$pattern,
array
$input,
[integer
$flags = 0] )
Parameters
$pattern
— string- Regular expression patter to run against the keys
$input
— array- Input array
$flags
— integer- Flags to pass to preg_grep
Returns
- array
- Array of key value pairs who's keys matched the expression