| @@ 2972-2979 (lines=8) @@ | ||
| 2969 | * |
|
| 2970 | * @return string <p>The character with the highest code point than others.</p> |
|
| 2971 | */ |
|
| 2972 | public static function max($arg) |
|
| 2973 | { |
|
| 2974 | if (is_array($arg)) { |
|
| 2975 | $arg = implode($arg); |
|
| 2976 | } |
|
| 2977 | ||
| 2978 | return self::chr(max(self::codepoints($arg))); |
|
| 2979 | } |
|
| 2980 | ||
| 2981 | /** |
|
| 2982 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3022-3029 (lines=8) @@ | ||
| 3019 | * |
|
| 3020 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3021 | */ |
|
| 3022 | public static function min($arg) |
|
| 3023 | { |
|
| 3024 | if (is_array($arg)) { |
|
| 3025 | $arg = implode($arg); |
|
| 3026 | } |
|
| 3027 | ||
| 3028 | return self::chr(min(self::codepoints($arg))); |
|
| 3029 | } |
|
| 3030 | ||
| 3031 | /** |
|
| 3032 | * alias for "UTF8::normalize_encoding()" |
|