| @@ 3351-3358 (lines=8) @@ | ||
| 3348 | * |
|
| 3349 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3350 | */ |
|
| 3351 | public static function max($arg) |
|
| 3352 | { |
|
| 3353 | if (is_array($arg) === true) { |
|
| 3354 | $arg = implode('', $arg); |
|
| 3355 | } |
|
| 3356 | ||
| 3357 | return self::chr(max(self::codepoints($arg))); |
|
| 3358 | } |
|
| 3359 | ||
| 3360 | /** |
|
| 3361 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3401-3408 (lines=8) @@ | ||
| 3398 | * |
|
| 3399 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3400 | */ |
|
| 3401 | public static function min($arg) |
|
| 3402 | { |
|
| 3403 | if (is_array($arg) === true) { |
|
| 3404 | $arg = implode('', $arg); |
|
| 3405 | } |
|
| 3406 | ||
| 3407 | return self::chr(min(self::codepoints($arg))); |
|
| 3408 | } |
|
| 3409 | ||
| 3410 | /** |
|
| 3411 | * alias for "UTF8::normalize_encoding()" |
|