Lines Matching refs:iconv_strpos
2 Test iconv_strpos() function : usage variations - Pass different integers as $offset argument
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
18 * Test how iconv_strpos() behaves when passed different integers as $offset argument
25 echo "*** Testing iconv_strpos() : usage variations ***\n";
35 * iconv_strpos should not be able to accept negative values as $offset.
41 var_dump(iconv_strpos($string_ascii, $needle_ascii, $i));
43 var_dump(iconv_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
50 *** Testing iconv_strpos() : usage variations ***
55 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
59 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d