| @@ 3909-3916 (lines=8) @@ | ||
| 3906 | * |
|
| 3907 | * @return string The character with the highest code point than others. |
|
| 3908 | */ |
|
| 3909 | public static function max($arg) |
|
| 3910 | { |
|
| 3911 | if (is_array($arg)) { |
|
| 3912 | $arg = implode($arg); |
|
| 3913 | } |
|
| 3914 | ||
| 3915 | return self::chr(max(self::codepoints($arg))); |
|
| 3916 | } |
|
| 3917 | ||
| 3918 | /** |
|
| 3919 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3959-3966 (lines=8) @@ | ||
| 3956 | * |
|
| 3957 | * @return string The character with the lowest code point than others. |
|
| 3958 | */ |
|
| 3959 | public static function min($arg) |
|
| 3960 | { |
|
| 3961 | if (is_array($arg)) { |
|
| 3962 | $arg = implode($arg); |
|
| 3963 | } |
|
| 3964 | ||
| 3965 | return self::chr(min(self::codepoints($arg))); |
|
| 3966 | } |
|
| 3967 | ||
| 3968 | /** |
|
| 3969 | * alias for "UTF8::normalize_encoding()" |
|