Lines Matching refs:mb_substr_count
2 Test mb_substr_count() function : usage variations - pass different data types as $needle arg
6 function_exists('mb_substr_count') or die("skip mb_substr_count() is not available in this build");
10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
16 * Pass different data types as $needle to mb_substr_count() to test behaviour
19 echo "*** Testing mb_substr_count() : usage variations ***\n";
92 // loop through each element of $inputs to check the behavior of mb_substr_count()
96 var_dump( mb_substr_count($haystack, $input) );
105 *** Testing mb_substr_count() : usage variations ***
136 Warning: mb_substr_count(): Empty substring in %s on line %d
141 Warning: mb_substr_count(): Empty substring in %s on line %d
149 Warning: mb_substr_count(): Empty substring in %s on line %d
157 Warning: mb_substr_count(): Empty substring in %s on line %d
162 Warning: mb_substr_count(): Empty substring in %s on line %d
167 Warning: mb_substr_count(): Empty substring in %s on line %d
184 Warning: mb_substr_count(): Empty substring in %s on line %d
189 Warning: mb_substr_count(): Empty substring in %s on line %d
194 Warning: mb_substr_count() expects parameter 2 to be string, resource given in %s on line %d