Lines Matching refs:mb_strpos
2 Test mb_strpos() function : usage variations - Pass different integers as $offset argument
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Test how mb_strpos() behaves when passed different integers as $offset argument
23 echo "*** Testing mb_strpos() : usage variations ***\n";
33 * mb_strpos should not be able to accept negative values as $offset.
39 var_dump(mb_strpos($string_ascii, $needle_ascii, $i));
41 var_dump(mb_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
48 *** Testing mb_strpos() : usage variations ***
53 Warning: mb_strpos(): Offset not contained in string in %s on line %d
57 Warning: mb_strpos(): Offset not contained in string in %s on line %d
81 Warning: mb_strpos(): Offset not contained in string in %s on line %d
85 Warning: mb_strpos(): Offset not contained in string in %s on line %d
91 Warning: mb_strpos(): Offset not contained in string in %s on line %d
95 Warning: mb_strpos(): Offset not contained in string in %s on line %d
101 Warning: mb_strpos(): Offset not contained in string in %s on line %d
105 Warning: mb_strpos(): Offset not contained in string in %s on line %d
111 Warning: mb_strpos(): Offset not contained in string in %s on line %d
115 Warning: mb_strpos(): Offset not contained in string in %s on line %d