| @@ 3662-3669 (lines=8) @@ | ||
| 3659 | * |
|
| 3660 | * @return string The character with the highest code point than others. |
|
| 3661 | */ |
|
| 3662 | public static function max($arg) |
|
| 3663 | { |
|
| 3664 | if (is_array($arg)) { |
|
| 3665 | $arg = implode($arg); |
|
| 3666 | } |
|
| 3667 | ||
| 3668 | return self::chr(max(self::codepoints($arg))); |
|
| 3669 | } |
|
| 3670 | ||
| 3671 | /** |
|
| 3672 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3712-3719 (lines=8) @@ | ||
| 3709 | * |
|
| 3710 | * @return string The character with the lowest code point than others. |
|
| 3711 | */ |
|
| 3712 | public static function min($arg) |
|
| 3713 | { |
|
| 3714 | if (is_array($arg)) { |
|
| 3715 | $arg = implode($arg); |
|
| 3716 | } |
|
| 3717 | ||
| 3718 | return self::chr(min(self::codepoints($arg))); |
|
| 3719 | } |
|
| 3720 | ||
| 3721 | /** |
|
| 3722 | * Normalize the encoding-name input. |
|