2 /* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
3 * Description: Returns part of a string
4 * Source code: ext/iconv/iconv.c
8 * Pass an unknown encoding to iconv_substr() to test behaviour
11 echo "*** Testing iconv_substr() : error conditions ***\n";
13 $str = 'Hello, world';
16 $encoding = 'unknown-encoding';
18 var_dump( iconv_substr($str, $start, $length, $encoding));