| @@ 3818-3825 (lines=8) @@ | ||
| 3815 | * |
|
| 3816 | * @return string The character with the highest code point than others. |
|
| 3817 | */ |
|
| 3818 | public static function max($arg) |
|
| 3819 | { |
|
| 3820 | if (is_array($arg)) { |
|
| 3821 | $arg = implode($arg); |
|
| 3822 | } |
|
| 3823 | ||
| 3824 | return self::chr(max(self::codepoints($arg))); |
|
| 3825 | } |
|
| 3826 | ||
| 3827 | /** |
|
| 3828 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3868-3875 (lines=8) @@ | ||
| 3865 | * |
|
| 3866 | * @return string The character with the lowest code point than others. |
|
| 3867 | */ |
|
| 3868 | public static function min($arg) |
|
| 3869 | { |
|
| 3870 | if (is_array($arg)) { |
|
| 3871 | $arg = implode($arg); |
|
| 3872 | } |
|
| 3873 | ||
| 3874 | return self::chr(min(self::codepoints($arg))); |
|
| 3875 | } |
|
| 3876 | ||
| 3877 | /** |
|
| 3878 | * Normalize the encoding-name input. |
|