| @@ 3438-3445 (lines=8) @@ | ||
| 3435 | * |
|
| 3436 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3437 | */ |
|
| 3438 | public static function max($arg) |
|
| 3439 | { |
|
| 3440 | if (is_array($arg) === true) { |
|
| 3441 | $arg = implode('', $arg); |
|
| 3442 | } |
|
| 3443 | ||
| 3444 | return self::chr(max(self::codepoints($arg))); |
|
| 3445 | } |
|
| 3446 | ||
| 3447 | /** |
|
| 3448 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3488-3495 (lines=8) @@ | ||
| 3485 | * |
|
| 3486 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3487 | */ |
|
| 3488 | public static function min($arg) |
|
| 3489 | { |
|
| 3490 | if (is_array($arg) === true) { |
|
| 3491 | $arg = implode('', $arg); |
|
| 3492 | } |
|
| 3493 | ||
| 3494 | return self::chr(min(self::codepoints($arg))); |
|
| 3495 | } |
|
| 3496 | ||
| 3497 | /** |
|
| 3498 | * alias for "UTF8::normalize_encoding()" |
|