| @@ 3849-3856 (lines=8) @@ | ||
| 3846 | * |
|
| 3847 | * @return string The character with the highest code point than others. |
|
| 3848 | */ |
|
| 3849 | public static function max($arg) |
|
| 3850 | { |
|
| 3851 | if (is_array($arg)) { |
|
| 3852 | $arg = implode($arg); |
|
| 3853 | } |
|
| 3854 | ||
| 3855 | return self::chr(max(self::codepoints($arg))); |
|
| 3856 | } |
|
| 3857 | ||
| 3858 | /** |
|
| 3859 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3899-3906 (lines=8) @@ | ||
| 3896 | * |
|
| 3897 | * @return string The character with the lowest code point than others. |
|
| 3898 | */ |
|
| 3899 | public static function min($arg) |
|
| 3900 | { |
|
| 3901 | if (is_array($arg)) { |
|
| 3902 | $arg = implode($arg); |
|
| 3903 | } |
|
| 3904 | ||
| 3905 | return self::chr(min(self::codepoints($arg))); |
|
| 3906 | } |
|
| 3907 | ||
| 3908 | /** |
|
| 3909 | * Normalize the encoding-name input. |
|