global statement removal: hphp/test/zend [2/x]
[hiphop-php.git] / hphp / test / zend / good / ext / iconv / tests / iconv_strrpos_error2.php
blob584a91d92f0dfd41e765dc0b39e7d7af1306ce72
1 <?php
2 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
3 * Description: Find position of last occurrence of a string within another
4 * Source code: ext/iconv/iconv.c
5 */
7 /*
8 * Pass iconv_strrpos() an encoding that doesn't exist
9 */
11 echo "*** Testing iconv_strrpos() : error conditions ***\n";
13 $haystack = 'This is an English string. 0123456789.';
14 $needle = '123';
15 $offset = 5;
16 $encoding = 'unknown-encoding';
18 var_dump(iconv_strrpos($haystack, $needle , $encoding));
20 echo "Done";