Lines Matching refs:strtr
2 Test strtr() function : error conditions
5 /* Prototype : string strtr(string str, string from[, string to])
10 echo "*** Testing strtr() : error conditions ***\n";
16 echo "\n-- Testing strtr() function with Zero arguments --";
17 var_dump( strtr() );
19 echo "\n-- Testing strtr() function with less than expected no. of arguments --";
20 var_dump( strtr($str) );
22 echo "\n-- Testing strtr() function with more than expected no. of arguments --";
23 var_dump( strtr($str, $from, $to, $extra_arg) );
28 *** Testing strtr() : error conditions ***
30 -- Testing strtr() function with Zero arguments --
31 Warning: strtr() expects at least 2 parameters, 0 given in %s on line %d
34 -- Testing strtr() function with less than expected no. of arguments --
35 Warning: strtr() expects at least 2 parameters, 1 given in %s on line %d
38 -- Testing strtr() function with more than expected no. of arguments --
39 Warning: strtr() expects at most 3 parameters, 4 given in %s on line %d