Lines Matching refs:mb_strrichr
2 Test mb_strrichr() function : error conditions
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])
16 echo "*** Testing mb_strrichr() : error conditions ***\n";
19 //Test mb_strrichr with one more than the expected number of arguments
20 echo "\n-- Testing mb_strrichr() function with more than expected no. of arguments --\n";
26 var_dump( mb_strrichr($haystack, $needle, $part, $encoding, $extra_arg) );
28 // Testing mb_strrichr with one less than the expected number of arguments
29 echo "\n-- Testing mb_strrichr() function with less than expected no. of arguments --\n";
31 var_dump( mb_strrichr($haystack) );
36 *** Testing mb_strrichr() : error conditions ***
38 -- Testing mb_strrichr() function with more than expected no. of arguments --
40 Warning: mb_strrichr() expects at most 4 parameters, 5 given in %s on line %d
43 -- Testing mb_strrichr() function with less than expected no. of arguments --
45 Warning: mb_strrichr() expects at least 2 parameters, 1 given in %s on line %d