Lines Matching refs:preg_grep
2 Test preg_grep() function : error conditions - wrong numbers of parameters
6 * proto array preg_grep(string regex, array input [, int flags])
9 echo "*** Testing preg_grep() : error conditions ***\n";
11 echo "\n-- Testing preg_grep() function with Zero arguments --\n";
12 var_dump(preg_grep());
13 //Test preg_grep with one more than the expected number of arguments
14 echo "\n-- Testing preg_grep() function with more than expected no. of arguments --\n";
19 var_dump(preg_grep($regex, $input, $flags, $extra_arg));
20 // Testing preg_grep withone less than the expected number of arguments
21 echo "\n-- Testing preg_grep() function with less than expected no. of arguments --\n";
23 var_dump(preg_grep($regex));
27 *** Testing preg_grep() : error conditions ***
29 -- Testing preg_grep() function with Zero arguments --
31 Warning: preg_grep() expects at least 2 parameters, 0 given in %spreg_grep_error.php on line %d
34 -- Testing preg_grep() function with more than expected no. of arguments --
36 Warning: preg_grep() expects at most 3 parameters, 4 given in %spreg_grep_error.php on line %d
39 -- Testing preg_grep() function with less than expected no. of arguments --
41 Warning: preg_grep() expects at least 2 parameters, 1 given in %spreg_grep_error.php on line %d