Display the drop-down list

preg_grep()

« preg_filter | preg_last_error »
<?php
$array 
preg_grep (
    
// string $pattern
    
// array $input
    
?  // [int $flags = 0]
);
?>
Result
$array = [
  
=> 0.45600000000000002,
]
Examples
#1 preg_grep  ('/^(\d+)?\.\d+$/',
 [
=> 123=> 0.456=> "xyz"])
See also
preg_filter, preg_last_error, preg_match_all, preg_quote