| @@ 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) |
|
| 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 |
|
| @@ 3503-3510 (lines=8) @@ | ||
| 3500 | * |
|
| 3501 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3502 | */ |
|
| 3503 | public static function min($arg) |
|
| 3504 | { |
|
| 3505 | if (is_array($arg) === true) { |
|
| 3506 | $arg = implode('', $arg); |
|
| 3507 | } |
|
| 3508 | ||
| 3509 | return self::chr(min(self::codepoints($arg))); |
|
| 3510 | } |
|
| 3511 | ||
| 3512 | /** |
|
| 3513 | * alias for "UTF8::normalize_encoding()" |
|