| @@ 3472-3479 (lines=8) @@ | ||
| 3469 | * |
|
| 3470 | * @return string The character with the highest code point than others. |
|
| 3471 | */ |
|
| 3472 | public static function max($arg) |
|
| 3473 | { |
|
| 3474 | if (is_array($arg)) { |
|
| 3475 | $arg = implode($arg); |
|
| 3476 | } |
|
| 3477 | ||
| 3478 | return self::chr(max(self::codepoints($arg))); |
|
| 3479 | } |
|
| 3480 | ||
| 3481 | /** |
|
| 3482 | * Accepts a string and returns an array of Unicode code points. |
|
| @@ 3524-3531 (lines=8) @@ | ||
| 3521 | * |
|
| 3522 | * @return string The character with the lowest code point than others. |
|
| 3523 | */ |
|
| 3524 | public static function min($arg) |
|
| 3525 | { |
|
| 3526 | if (is_array($arg)) { |
|
| 3527 | $arg = implode($arg); |
|
| 3528 | } |
|
| 3529 | ||
| 3530 | return self::chr(min(self::codepoints($arg))); |
|
| 3531 | } |
|
| 3532 | ||
| 3533 | /** |
|
| 3534 | * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character. |
|