Lines Matching refs:mb_substr
2 Test mb_substr() function : usage variations - Pass different data types as $encoding arg
6 function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
10 /* Prototype : string mb_substr(string $str, int $start [, int $length [, string $encoding]])
16 * Pass different data types as $encoding argument to mb_substr() to test behaviour
20 echo "*** Testing mb_substr() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of mb_substr
99 $res = mb_substr($str, $start, $length, $input);
113 *** Testing mb_substr() : usage variations ***
117 Warning: mb_substr(): Unknown encoding "0" in %s on line %d
122 Warning: mb_substr(): Unknown encoding "1" in %s on line %d
127 Warning: mb_substr(): Unknown encoding "12345" in %s on line %d
132 Warning: mb_substr(): Unknown encoding "-2345" in %s on line %d
137 Warning: mb_substr(): Unknown encoding "10.5" in %s on line %d
142 Warning: mb_substr(): Unknown encoding "-10.5" in %s on line %d
147 Warning: mb_substr(): Unknown encoding "123456789000" in %s on line %d
152 Warning: mb_substr(): Unknown encoding "1.23456789E-9" in %s on line %d
157 Warning: mb_substr(): Unknown encoding "0.5" in %s on line %d
162 Warning: mb_substr(): Unknown encoding "" in %s on line %d
167 Warning: mb_substr(): Unknown encoding "" in %s on line %d
172 Warning: mb_substr(): Unknown encoding "1" in %s on line %d
177 Warning: mb_substr(): Unknown encoding "" in %s on line %d
182 Warning: mb_substr(): Unknown encoding "1" in %s on line %d
187 Warning: mb_substr(): Unknown encoding "" in %s on line %d
192 Warning: mb_substr(): Unknown encoding "" in %s on line %d
197 Warning: mb_substr(): Unknown encoding "" in %s on line %d
214 Warning: mb_substr(): Unknown encoding "" in %s on line %d
219 Warning: mb_substr(): Unknown encoding "" in %s on line %d
224 Warning: mb_substr() expects parameter 4 to be string, resource given in %s on line %d