Lines Matching refs:iconv_strpos
2 Test iconv_strpos() function : error conditions - Pass incorrect number of args
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
16 * Test how iconv_strpos behaves when passed an incorrect number of arguments
19 echo "*** Testing iconv_strpos() : error conditions ***\n";
22 //Test iconv_strpos with one more than the expected number of arguments
23 echo "\n-- Testing iconv_strpos() function with more than expected no. of arguments --\n";
29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
31 // Testing iconv_strpos with one less than the expected number of arguments
32 echo "\n-- Testing iconv_strpos() function with less than expected no. of arguments --\n";
34 var_dump( iconv_strpos($haystack) );
39 *** Testing iconv_strpos() : error conditions ***
41 -- Testing iconv_strpos() function with more than expected no. of arguments --
43 Warning: iconv_strpos() expects at most 4 parameters, 5 given in %s on line %d
46 -- Testing iconv_strpos() function with less than expected no. of arguments --
48 Warning: iconv_strpos() expects at least 2 parameters, 1 given in %s on line %d