Lines Matching refs:mb_strpos

2 Test mb_strpos() function : usage variations - pass different data types as $offset arg
6 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
11 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
17 * Pass mb_strpos different data types as $offset arg to test behaviour
20 echo "*** Testing mb_strpos() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of mb_strpos()
99 var_dump( mb_strpos($haystack, $needle, $input, $encoding));
108 *** Testing mb_strpos() : usage variations ***
118 Warning: mb_strpos(): Offset not contained in string in %s on line %d
123 Warning: mb_strpos(): Offset not contained in string in %s on line %d
131 Warning: mb_strpos(): Offset not contained in string in %s on line %d
136 Warning: mb_strpos(): Offset not contained in string in %s on line %d
165 Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d
170 Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d
175 Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d
180 Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d
185 Warning: mb_strpos() expects parameter 3 to be integer, string given in %s on line %d
190 Warning: mb_strpos() expects parameter 3 to be integer, object given in %s on line %d
201 Warning: mb_strpos() expects parameter 3 to be integer, resource given in %s on line %d