| @@ 2991-2998 (lines=8) @@ | ||
| 2988 | * |
|
| 2989 | * @return string <p>The character with the highest code point than others.</p> |
|
| 2990 | */ |
|
| 2991 | public static function max($arg) |
|
| 2992 | { |
|
| 2993 | if (is_array($arg)) { |
|
| 2994 | $arg = implode($arg); |
|
| 2995 | } |
|
| 2996 | ||
| 2997 | return self::chr(max(self::codepoints($arg))); |
|
| 2998 | } |
|
| 2999 | ||
| 3000 | /** |
|
| 3001 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3041-3048 (lines=8) @@ | ||
| 3038 | * |
|
| 3039 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3040 | */ |
|
| 3041 | public static function min($arg) |
|
| 3042 | { |
|
| 3043 | if (is_array($arg)) { |
|
| 3044 | $arg = implode($arg); |
|
| 3045 | } |
|
| 3046 | ||
| 3047 | return self::chr(min(self::codepoints($arg))); |
|
| 3048 | } |
|
| 3049 | ||
| 3050 | /** |
|
| 3051 | * alias for "UTF8::normalize_encoding()" |
|