Lines Matching refs:mb_stripos
2 Test mb_stripos() function : error conditions - Pass incorrect number of args
6 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
17 * Test how mb_stripos behaves when passed an incorrect number of arguments
20 echo "*** Testing mb_stripos() : error conditions ***\n";
23 //Test mb_stripos with one more than the expected number of arguments
24 echo "\n-- Testing mb_stripos() function with more than expected no. of arguments --\n";
30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) );
32 // Testing mb_stripos with one less than the expected number of arguments
33 echo "\n-- Testing mb_stripos() function with less than expected no. of arguments --\n";
35 var_dump( mb_stripos($haystack) );
40 *** Testing mb_stripos() : error conditions ***
42 -- Testing mb_stripos() function with more than expected no. of arguments --
44 Warning: mb_stripos() expects at most 4 parameters, 5 given in %s on line %d
47 -- Testing mb_stripos() function with less than expected no. of arguments --
49 Warning: mb_stripos() expects at least 2 parameters, 1 given in %s on line %d