| @@ 3165-3172 (lines=8) @@ | ||
| 3162 | * |
|
| 3163 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3164 | */ |
|
| 3165 | public static function max($arg) |
|
| 3166 | { |
|
| 3167 | if (is_array($arg)) { |
|
| 3168 | $arg = implode('', $arg); |
|
| 3169 | } |
|
| 3170 | ||
| 3171 | return self::chr(max(self::codepoints($arg))); |
|
| 3172 | } |
|
| 3173 | ||
| 3174 | /** |
|
| 3175 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3215-3222 (lines=8) @@ | ||
| 3212 | * |
|
| 3213 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3214 | */ |
|
| 3215 | public static function min($arg) |
|
| 3216 | { |
|
| 3217 | if (is_array($arg)) { |
|
| 3218 | $arg = implode('', $arg); |
|
| 3219 | } |
|
| 3220 | ||
| 3221 | return self::chr(min(self::codepoints($arg))); |
|
| 3222 | } |
|
| 3223 | ||
| 3224 | /** |
|
| 3225 | * alias for "UTF8::normalize_encoding()" |
|