| @@ 3357-3364 (lines=8) @@ | ||
| 3354 | * |
|
| 3355 | * @return string The character with the highest code point than others |
|
| 3356 | */ |
|
| 3357 | public static function max($arg) |
|
| 3358 | { |
|
| 3359 | if (is_array($arg)) { |
|
| 3360 | $arg = implode($arg); |
|
| 3361 | } |
|
| 3362 | ||
| 3363 | return self::chr(max(self::codepoints($arg))); |
|
| 3364 | } |
|
| 3365 | ||
| 3366 | /** |
|
| 3367 | * accepts a string and returns an array of Unicode Code Points |
|
| @@ 3411-3418 (lines=8) @@ | ||
| 3408 | * |
|
| 3409 | * @return string The character with the lowest code point than others |
|
| 3410 | */ |
|
| 3411 | public static function min($arg) |
|
| 3412 | { |
|
| 3413 | if (is_array($arg)) { |
|
| 3414 | $arg = implode($arg); |
|
| 3415 | } |
|
| 3416 | ||
| 3417 | return self::chr(min(self::codepoints($arg))); |
|
| 3418 | } |
|
| 3419 | ||
| 3420 | /** |
|
| 3421 | * Get hexadecimal code point (U+xxxx) of a UTF-8 encoded character. |
|