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");
10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
16 * Pass mb_strpos different data types as $offset arg to test behaviour
19 echo "*** Testing mb_strpos() : usage variations ***\n";
94 // loop through each element of $inputs to check the behavior of mb_strpos()
98 var_dump( mb_strpos($haystack, $needle, $input, $encoding));
107 *** Testing mb_strpos() : usage variations ***
117 Warning: mb_strpos(): Offset not contained in string in %s on line %d
122 Warning: mb_strpos(): Offset not contained in string in %s on line %d
130 Warning: mb_strpos(): Offset not contained in string in %s on line %d
135 Warning: mb_strpos(): Offset not contained in string in %s on line %d
164 Warning: mb_strpos() expects parameter 3 to be long, string given in %s on line %d
169 Warning: mb_strpos() expects parameter 3 to be long, string given in %s on line %d
174 Warning: mb_strpos() expects parameter 3 to be long, string given in %s on line %d
179 Warning: mb_strpos() expects parameter 3 to be long, string given in %s on line %d
184 Warning: mb_strpos() expects parameter 3 to be long, string given in %s on line %d
189 Warning: mb_strpos() expects parameter 3 to be long, object given in %s on line %d
200 Warning: mb_strpos() expects parameter 3 to be long, resource given in %s on line %d