2 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
3 * Description: Find position of first occurrence of a string within another
4 * Source code: ext/iconv/iconv.c
8 * Pass an unknown encoding to iconv_strpos() to test behaviour
11 echo "*** Testing iconv_strpos() : error conditions ***\n";
12 $haystack = 'Hello, world';
15 $encoding = 'unknown-encoding';
17 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );