| @@ 3441-3448 (lines=8) @@ | ||
| 3438 | * |
|
| 3439 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3440 | */ |
|
| 3441 | public static function max($arg) |
|
| 3442 | { |
|
| 3443 | if (is_array($arg) === true) { |
|
| 3444 | $arg = implode('', $arg); |
|
| 3445 | } |
|
| 3446 | ||
| 3447 | return self::chr(max(self::codepoints($arg))); |
|
| 3448 | } |
|
| 3449 | ||
| 3450 | /** |
|
| 3451 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3491-3498 (lines=8) @@ | ||
| 3488 | * |
|
| 3489 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3490 | */ |
|
| 3491 | public static function min($arg) |
|
| 3492 | { |
|
| 3493 | if (is_array($arg) === true) { |
|
| 3494 | $arg = implode('', $arg); |
|
| 3495 | } |
|
| 3496 | ||
| 3497 | return self::chr(min(self::codepoints($arg))); |
|
| 3498 | } |
|
| 3499 | ||
| 3500 | /** |
|
| 3501 | * alias for "UTF8::normalize_encoding()" |
|