| @@ 3489-3496 (lines=8) @@ | ||
| 3486 | * |
|
| 3487 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3488 | */ |
|
| 3489 | public static function max($arg) |
|
| 3490 | { |
|
| 3491 | if (is_array($arg) === true) { |
|
| 3492 | $arg = implode('', $arg); |
|
| 3493 | } |
|
| 3494 | ||
| 3495 | return self::chr(max(self::codepoints($arg))); |
|
| 3496 | } |
|
| 3497 | ||
| 3498 | /** |
|
| 3499 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3539-3546 (lines=8) @@ | ||
| 3536 | * |
|
| 3537 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3538 | */ |
|
| 3539 | public static function min($arg) |
|
| 3540 | { |
|
| 3541 | if (is_array($arg) === true) { |
|
| 3542 | $arg = implode('', $arg); |
|
| 3543 | } |
|
| 3544 | ||
| 3545 | return self::chr(min(self::codepoints($arg))); |
|
| 3546 | } |
|
| 3547 | ||
| 3548 | /** |
|
| 3549 | * alias for "UTF8::normalize_encoding()" |
|