| @@ 3775-3782 (lines=8) @@ | ||
| 3772 | * |
|
| 3773 | * @return string The character with the highest code point than others. |
|
| 3774 | */ |
|
| 3775 | public static function max($arg) |
|
| 3776 | { |
|
| 3777 | if (is_array($arg)) { |
|
| 3778 | $arg = implode($arg); |
|
| 3779 | } |
|
| 3780 | ||
| 3781 | return self::chr(max(self::codepoints($arg))); |
|
| 3782 | } |
|
| 3783 | ||
| 3784 | /** |
|
| 3785 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3825-3832 (lines=8) @@ | ||
| 3822 | * |
|
| 3823 | * @return string The character with the lowest code point than others. |
|
| 3824 | */ |
|
| 3825 | public static function min($arg) |
|
| 3826 | { |
|
| 3827 | if (is_array($arg)) { |
|
| 3828 | $arg = implode($arg); |
|
| 3829 | } |
|
| 3830 | ||
| 3831 | return self::chr(min(self::codepoints($arg))); |
|
| 3832 | } |
|
| 3833 | ||
| 3834 | /** |
|
| 3835 | * Normalize the encoding-name input. |
|