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