| @@ 3539-3546 (lines=8) @@ | ||
| 3536 | * |
|
| 3537 | * @return string The character with the highest code point than others. |
|
| 3538 | */ |
|
| 3539 | public static function max($arg) |
|
| 3540 | { |
|
| 3541 | if (is_array($arg)) { |
|
| 3542 | $arg = implode($arg); |
|
| 3543 | } |
|
| 3544 | ||
| 3545 | return self::chr(max(self::codepoints($arg))); |
|
| 3546 | } |
|
| 3547 | ||
| 3548 | /** |
|
| 3549 | * Accepts a string and returns an array of Unicode code points. |
|
| @@ 3591-3598 (lines=8) @@ | ||
| 3588 | * |
|
| 3589 | * @return string The character with the lowest code point than others. |
|
| 3590 | */ |
|
| 3591 | public static function min($arg) |
|
| 3592 | { |
|
| 3593 | if (is_array($arg)) { |
|
| 3594 | $arg = implode($arg); |
|
| 3595 | } |
|
| 3596 | ||
| 3597 | return self::chr(min(self::codepoints($arg))); |
|
| 3598 | } |
|
| 3599 | ||
| 3600 | /** |
|
| 3601 | * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character. |
|