| @@ 3453-3460 (lines=8) @@ | ||
| 3450 | * |
|
| 3451 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3452 | */ |
|
| 3453 | public static function max($arg): string |
|
| 3454 | { |
|
| 3455 | if (\is_array($arg) === true) { |
|
| 3456 | $arg = \implode('', $arg); |
|
| 3457 | } |
|
| 3458 | ||
| 3459 | return self::chr(\max(self::codepoints($arg))); |
|
| 3460 | } |
|
| 3461 | ||
| 3462 | /** |
|
| 3463 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3515-3522 (lines=8) @@ | ||
| 3512 | * |
|
| 3513 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3514 | */ |
|
| 3515 | public static function min($arg): string |
|
| 3516 | { |
|
| 3517 | if (\is_array($arg) === true) { |
|
| 3518 | $arg = \implode('', $arg); |
|
| 3519 | } |
|
| 3520 | ||
| 3521 | return self::chr(\min(self::codepoints($arg))); |
|
| 3522 | } |
|
| 3523 | ||
| 3524 | /** |
|
| 3525 | * alias for "UTF8::normalize_encoding()" |
|