Lines Matching refs:ereg_replace
2 Test ereg_replace() function : error conditions - wrong number of args
5 /* Prototype : proto string ereg_replace(string pattern, string replacement, string string)
11 echo "*** Testing ereg_replace() : error conditions ***\n";
14 //Test ereg_replace with one more than the expected number of arguments
15 echo "\n-- Testing ereg_replace() function with more than expected no. of arguments --\n";
20 var_dump( ereg_replace($pattern, $replacement, $string, $extra_arg) );
22 // Testing ereg_replace with one less than the expected number of arguments
23 echo "\n-- Testing ereg_replace() function with less than expected no. of arguments --\n";
26 var_dump( ereg_replace($pattern, $replacement) );
31 *** Testing ereg_replace() : error conditions ***
33 -- Testing ereg_replace() function with more than expected no. of arguments --
35 Deprecated: Function ereg_replace() is deprecated in %s on line %d
37 Warning: ereg_replace() expects exactly 3 parameters, 4 given in %s on line %d
40 -- Testing ereg_replace() function with less than expected no. of arguments --
42 Deprecated: Function ereg_replace() is deprecated in %s on line %d
44 Warning: ereg_replace() expects exactly 3 parameters, 2 given in %s on line %d