| @@ 3484-3491 (lines=8) @@ | ||
| 3481 | * |
|
| 3482 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3483 | */ |
|
| 3484 | public static function max($arg) |
|
| 3485 | { |
|
| 3486 | if (is_array($arg) === true) { |
|
| 3487 | $arg = implode('', $arg); |
|
| 3488 | } |
|
| 3489 | ||
| 3490 | return self::chr(max(self::codepoints($arg))); |
|
| 3491 | } |
|
| 3492 | ||
| 3493 | /** |
|
| 3494 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3534-3541 (lines=8) @@ | ||
| 3531 | * |
|
| 3532 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3533 | */ |
|
| 3534 | public static function min($arg) |
|
| 3535 | { |
|
| 3536 | if (is_array($arg) === true) { |
|
| 3537 | $arg = implode('', $arg); |
|
| 3538 | } |
|
| 3539 | ||
| 3540 | return self::chr(min(self::codepoints($arg))); |
|
| 3541 | } |
|
| 3542 | ||
| 3543 | /** |
|
| 3544 | * alias for "UTF8::normalize_encoding()" |
|