Lines Matching refs:mb_substr
2 Test mb_substr() function : error conditions - Pass incorrect number of args
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
10 /* Prototype : string mb_substr(string $str, int $start [, int $length [, string $encoding]])
16 * Pass incorrect number of arguments to mb_substr() to test behaviour
19 echo "*** Testing mb_substr() : error conditions ***\n";
21 //Test mb_substr with one more than the expected number of arguments
22 echo "\n-- Testing mb_substr() function with more than expected no. of arguments --\n";
28 var_dump( mb_substr($str, $start, $length, $encoding, $extra_arg) );
30 // Testing mb_substr with one less than the expected number of arguments
31 echo "\n-- Testing mb_substr() function with less than expected no. of arguments --\n";
33 var_dump( mb_substr($str) );
38 *** Testing mb_substr() : error conditions ***
40 -- Testing mb_substr() function with more than expected no. of arguments --
42 Warning: mb_substr() expects at most 4 parameters, 5 given in %s on line %d
45 -- Testing mb_substr() function with less than expected no. of arguments --
47 Warning: mb_substr() expects at least 2 parameters, 1 given in %s on line %d