Lines Matching refs:preg_replace
2 Test preg_replace() function : error - incorrect number of parameters
6 * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
9 echo "*** Testing preg_replace() : error conditions ***\n";
11 echo "\n-- Testing preg_replace() function with zero arguments --\n";
12 var_dump(preg_replace());
13 //Test preg_replace() with one more than the expected number of arguments
14 echo "\n-- Testing preg_replace() function with more than expected no. of arguments --\n";
20 var_dump(preg_replace($regex, $replace, $subject, $limit, $count, $extra_arg));
21 //Testing preg_replace() with one less than the expected number of arguments
22 echo "\n-- Testing preg_replace() function with less than expected no. of arguments --\n";
25 var_dump(preg_replace($regex, $replace));
29 *** Testing preg_replace() : error conditions ***
31 -- Testing preg_replace() function with zero arguments --
33 Warning: preg_replace() expects at least 3 parameters, 0 given in %s on line %d
36 -- Testing preg_replace() function with more than expected no. of arguments --
38 Warning: preg_replace() expects at most 5 parameters, 6 given in %s on line %d
41 -- Testing preg_replace() function with less than expected no. of arguments --
43 Warning: preg_replace() expects at least 3 parameters, 2 given in %s on line %d