| @@ 3791-3798 (lines=8) @@ | ||
| 3788 | * |
|
| 3789 | * @return string The character with the highest code point than others. |
|
| 3790 | */ |
|
| 3791 | public static function max($arg) |
|
| 3792 | { |
|
| 3793 | if (is_array($arg)) { |
|
| 3794 | $arg = implode($arg); |
|
| 3795 | } |
|
| 3796 | ||
| 3797 | return self::chr(max(self::codepoints($arg))); |
|
| 3798 | } |
|
| 3799 | ||
| 3800 | /** |
|
| 3801 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3841-3848 (lines=8) @@ | ||
| 3838 | * |
|
| 3839 | * @return string The character with the lowest code point than others. |
|
| 3840 | */ |
|
| 3841 | public static function min($arg) |
|
| 3842 | { |
|
| 3843 | if (is_array($arg)) { |
|
| 3844 | $arg = implode($arg); |
|
| 3845 | } |
|
| 3846 | ||
| 3847 | return self::chr(min(self::codepoints($arg))); |
|
| 3848 | } |
|
| 3849 | ||
| 3850 | /** |
|
| 3851 | * Normalize the encoding-name input. |
|