| @@ 3358-3365 (lines=8) @@ | ||
| 3355 | * |
|
| 3356 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3357 | */ |
|
| 3358 | public static function max($arg) |
|
| 3359 | { |
|
| 3360 | if (is_array($arg) === true) { |
|
| 3361 | $arg = implode('', $arg); |
|
| 3362 | } |
|
| 3363 | ||
| 3364 | return self::chr(max(self::codepoints($arg))); |
|
| 3365 | } |
|
| 3366 | ||
| 3367 | /** |
|
| 3368 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3408-3415 (lines=8) @@ | ||
| 3405 | * |
|
| 3406 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3407 | */ |
|
| 3408 | public static function min($arg) |
|
| 3409 | { |
|
| 3410 | if (is_array($arg) === true) { |
|
| 3411 | $arg = implode('', $arg); |
|
| 3412 | } |
|
| 3413 | ||
| 3414 | return self::chr(min(self::codepoints($arg))); |
|
| 3415 | } |
|
| 3416 | ||
| 3417 | /** |
|
| 3418 | * alias for "UTF8::normalize_encoding()" |
|