| @@ 2836-2843 (lines=8) @@ | ||
| 2833 | * |
|
| 2834 | * @return string <p>The character with the highest code point than others.</p> |
|
| 2835 | */ |
|
| 2836 | public static function max($arg): string |
|
| 2837 | { |
|
| 2838 | if (\is_array($arg) === true) { |
|
| 2839 | $arg = \implode('', $arg); |
|
| 2840 | } |
|
| 2841 | ||
| 2842 | return self::chr(\max(self::codepoints($arg))); |
|
| 2843 | } |
|
| 2844 | ||
| 2845 | /** |
|
| 2846 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 2893-2900 (lines=8) @@ | ||
| 2890 | * |
|
| 2891 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 2892 | */ |
|
| 2893 | public static function min($arg): string |
|
| 2894 | { |
|
| 2895 | if (\is_array($arg) === true) { |
|
| 2896 | $arg = \implode('', $arg); |
|
| 2897 | } |
|
| 2898 | ||
| 2899 | return self::chr(\min(self::codepoints($arg))); |
|
| 2900 | } |
|
| 2901 | ||
| 2902 | /** |
|
| 2903 | * alias for "UTF8::normalize_encoding()" |
|