3 * proto array preg_grep(string regex, array input [, int flags])
4 * Function is implemented in ext/pcre/php_pcre.c
6 echo "*** Testing preg_grep() : error conditions ***\n";
8 echo "\n-- Testing preg_grep() function with Zero arguments --\n";
10 //Test preg_grep with one more than the expected number of arguments
11 echo "\n-- Testing preg_grep() function with more than expected no. of arguments --\n";
16 var_dump(preg_grep($regex, $input, $flags, $extra_arg));
17 // Testing preg_grep withone less than the expected number of arguments
18 echo "\n-- Testing preg_grep() function with less than expected no. of arguments --\n";
19 $regex = 'string_val';
20 var_dump(preg_grep($regex));