web shop for only 500 euro web site fo only 200 euro


Web-shop for only 500 euro during 3 days, +38 068 801 14 71 (Kiev, Ukraine)

preg_grep

(PHP 4 )

preg_grep -- Return array entries that match the pattern

Description

array preg_grep (string pattern, array input)

preg_grep() returns the array consisting of the elements of the input array that match the given pattern.

Example 1. preg_grep() example


// return all array elements // containing floating point numbers $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array);       


 
web10.net.ua