Lines Matching refs:preg_split
2 Test preg_split() function : error conditions - incorrect number of parameters
6 * proto array preg_split(string pattern, string subject [, int limit [, int flags]])
9 echo "*** Testing preg_split() : error conditions ***\n";
11 echo "\n-- Testing preg_split() function with Zero arguments --\n";
12 var_dump(preg_split());
13 //Test preg_split with one more than the expected number of arguments
14 echo "\n-- Testing preg_split() function with more than expected no. of arguments --\n";
20 var_dump(preg_split($pattern, $subject, $limit, $flags, $extra_arg));
21 // Testing preg_split withone less than the expected number of arguments
22 echo "\n-- Testing preg_split() function with less than expected no. of arguments --\n";
24 var_dump(preg_split($pattern));
28 *** Testing preg_split() : error conditions ***
30 -- Testing preg_split() function with Zero arguments --
32 Warning: preg_split() expects at least 2 parameters, 0 given in %spreg_split_error.php on line %d
35 -- Testing preg_split() function with more than expected no. of arguments --
37 Warning: preg_split() expects at most 4 parameters, 5 given in %spreg_split_error.php on line %d
40 -- Testing preg_split() function with less than expected no. of arguments --
42 Warning: preg_split() expects at least 2 parameters, 1 given in %spreg_split_error.php on line %d