@@ -41,6 +41,8 @@ discard block |
||
41 | 41 | * @param string haystack |
42 | 42 | * @param string needle (you should validate this with utf8_is_valid) |
43 | 43 | * @param integer offset in characters (from left) |
44 | +* @param string $str |
|
45 | +* @param string $needle |
|
44 | 46 | * @return mixed integer position or FALSE on failure |
45 | 47 | * @see http://www.php.net/strpos |
46 | 48 | * @see utf8_strlen |
@@ -84,6 +86,8 @@ discard block |
||
84 | 86 | * @param string haystack |
85 | 87 | * @param string needle (you should validate this with utf8_is_valid) |
86 | 88 | * @param integer (optional) offset (from left) |
89 | +* @param string $str |
|
90 | +* @param string $needle |
|
87 | 91 | * @return mixed integer position or FALSE on failure |
88 | 92 | * @see http://www.php.net/strrpos |
89 | 93 | * @see utf8_substr |
@@ -148,7 +152,7 @@ discard block |
||
148 | 152 | * @param string |
149 | 153 | * @param integer number of UTF-8 characters offset (from left) |
150 | 154 | * @param integer (optional) length in UTF-8 characters from offset |
151 | -* @return mixed string or FALSE if failure |
|
155 | +* @return string string or FALSE if failure |
|
152 | 156 | * @package utf8 |
153 | 157 | */ |
154 | 158 | function utf8_substr($str, $offset, $length = NULL) { |
@@ -266,7 +270,7 @@ discard block |
||
266 | 270 | * Note: requires utf8_to_unicode and utf8_from_unicode |
267 | 271 | * @author Andreas Gohr <[email protected]> |
268 | 272 | * @param string |
269 | -* @return mixed either string in lowercase or FALSE is UTF-8 invalid |
|
273 | +* @return false|string either string in lowercase or FALSE is UTF-8 invalid |
|
270 | 274 | * @see http://www.php.net/strtolower |
271 | 275 | * @see utf8_to_unicode |
272 | 276 | * @see utf8_from_unicode |
@@ -353,7 +357,7 @@ discard block |
||
353 | 357 | * Note: requires utf8_to_unicode and utf8_from_unicode |
354 | 358 | * @author Andreas Gohr <[email protected]> |
355 | 359 | * @param string |
356 | -* @return mixed either string in lowercase or FALSE is UTF-8 invalid |
|
360 | +* @return false|string either string in lowercase or FALSE is UTF-8 invalid |
|
357 | 361 | * @see http://www.php.net/strtoupper |
358 | 362 | * @see utf8_to_unicode |
359 | 363 | * @see utf8_from_unicode |
@@ -9,6 +9,7 @@ |
||
9 | 9 | * Make a string's first character uppercase |
10 | 10 | * Note: requires utf8_strtoupper |
11 | 11 | * @param string |
12 | +* @param string $str |
|
12 | 13 | * @return string with first character as upper case (if applicable) |
13 | 14 | * @see http://www.php.net/ucfirst |
14 | 15 | * @see utf8_strtoupper |
@@ -362,7 +362,7 @@ |
||
362 | 362 | * Takes a return code from utf8_bad_identify() are returns a message |
363 | 363 | * (in English) explaining what the problem is. |
364 | 364 | * @param int return code from utf8_bad_identify |
365 | -* @return mixed string message or FALSE if return code unknown |
|
365 | +* @return string|false string message or FALSE if return code unknown |
|
366 | 366 | * @see utf8_bad_identify |
367 | 367 | * @package utf8 |
368 | 368 | */ |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * @param integer $offset Number of UTF-8 characters offset (from left) |
212 | 212 | * @param integer $length Optional length in UTF-8 characters from offset |
213 | 213 | * |
214 | - * @return mixed string or FALSE if failure |
|
214 | + * @return string string or FALSE if failure |
|
215 | 215 | * |
216 | 216 | * @see http://www.php.net/substr |
217 | 217 | * @since 1.3.0 |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | * |
237 | 237 | * @param string $str String being processed |
238 | 238 | * |
239 | - * @return mixed Either string in lowercase or FALSE is UTF-8 invalid |
|
239 | + * @return false|string Either string in lowercase or FALSE is UTF-8 invalid |
|
240 | 240 | * |
241 | 241 | * @see http://www.php.net/strtolower |
242 | 242 | * @since 1.3.0 |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * |
257 | 257 | * @param string $str String being processed |
258 | 258 | * |
259 | - * @return mixed Either string in uppercase or FALSE is UTF-8 invalid |
|
259 | + * @return false|string Either string in uppercase or FALSE is UTF-8 invalid |
|
260 | 260 | * |
261 | 261 | * @see http://www.php.net/strtoupper |
262 | 262 | * @since 1.3.0 |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | * @param string $str The haystack |
498 | 498 | * @param string $search The needle |
499 | 499 | * |
500 | - * @return string the sub string |
|
500 | + * @return integer the sub string |
|
501 | 501 | * |
502 | 502 | * @see http://www.php.net/stristr |
503 | 503 | * @since 1.3.0 |
@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | * @param string $from_encoding The source encoding. |
723 | 723 | * @param string $to_encoding The target encoding. |
724 | 724 | * |
725 | - * @return mixed The transcoded string, or null if the source was not a string. |
|
725 | + * @return string The transcoded string, or null if the source was not a string. |
|
726 | 726 | * |
727 | 727 | * @link https://bugs.php.net/bug.php?id=48147 |
728 | 728 | * |
@@ -478,9 +478,9 @@ |
||
478 | 478 | * |
479 | 479 | * @param array $a An array of objects |
480 | 480 | * @param mixed $k The key (string) or an array of keys to sort on |
481 | - * @param mixed $direction Direction (integer) or an array of direction to sort in [1 = Ascending] [-1 = Descending] |
|
482 | - * @param mixed $caseSensitive Boolean or array of booleans to let sort occur case sensitive or insensitive |
|
483 | - * @param mixed $locale Boolean or array of booleans to let sort occur using the locale language or not |
|
481 | + * @param integer $direction Direction (integer) or an array of direction to sort in [1 = Ascending] [-1 = Descending] |
|
482 | + * @param boolean $caseSensitive Boolean or array of booleans to let sort occur case sensitive or insensitive |
|
483 | + * @param boolean $locale Boolean or array of booleans to let sort occur using the locale language or not |
|
484 | 484 | * |
485 | 485 | * @return array |
486 | 486 | * |