| @@ 3480-3487 (lines=8) @@ | ||
| 3477 | * |
|
| 3478 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3479 | */ |
|
| 3480 | public static function max($arg) |
|
| 3481 | { |
|
| 3482 | if (is_array($arg) === true) { |
|
| 3483 | $arg = implode('', $arg); |
|
| 3484 | } |
|
| 3485 | ||
| 3486 | return self::chr(max(self::codepoints($arg))); |
|
| 3487 | } |
|
| 3488 | ||
| 3489 | /** |
|
| 3490 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3530-3537 (lines=8) @@ | ||
| 3527 | * |
|
| 3528 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3529 | */ |
|
| 3530 | public static function min($arg) |
|
| 3531 | { |
|
| 3532 | if (is_array($arg) === true) { |
|
| 3533 | $arg = implode('', $arg); |
|
| 3534 | } |
|
| 3535 | ||
| 3536 | return self::chr(min(self::codepoints($arg))); |
|
| 3537 | } |
|
| 3538 | ||
| 3539 | /** |
|
| 3540 | * alias for "UTF8::normalize_encoding()" |
|