Lines Matching refs:preg_replace_callback
2 Test preg_replace_callback() function : error
9 echo "***Testing preg_replace_callback() : error conditions***\n";
11 echo "\n-- Testing preg_replace_callback() function with Zero arguments --\n";
12 var_dump(preg_replace_callback());
13 //Test preg_replace_callback() with one more than the expected number of arguments
14 echo "\n-- Testing preg_replace_callback() function with more than expected no. of arguments --\n";
24 var_dump(preg_replace_callback($regex, 'integer_word', $subject, $limit, $count, $extra_arg));
25 //Testing preg_replace_callback() with one less than the expected number of arguments
26 echo "\n-- Testing preg_replace_callback() function with less than expected no. of arguments --\n";
28 var_dump(preg_replace_callback($regex, 'integer word'));
32 ***Testing preg_replace_callback() : error conditions***
34 -- Testing preg_replace_callback() function with Zero arguments --
36 Warning: preg_replace_callback() expects at least 3 parameters, 0 given in %s on line %d
39 -- Testing preg_replace_callback() function with more than expected no. of arguments --
41 Warning: preg_replace_callback() expects at most 5 parameters, 6 given in %s on line %d
44 -- Testing preg_replace_callback() function with less than expected no. of arguments --
46 Warning: preg_replace_callback() expects at least 3 parameters, 2 given in %s on line %d