| @@ 3261-3268 (lines=8) @@ | ||
| 3258 | * |
|
| 3259 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3260 | */ |
|
| 3261 | public static function max($arg) |
|
| 3262 | { |
|
| 3263 | if (is_array($arg)) { |
|
| 3264 | $arg = implode('', $arg); |
|
| 3265 | } |
|
| 3266 | ||
| 3267 | return self::chr(max(self::codepoints($arg))); |
|
| 3268 | } |
|
| 3269 | ||
| 3270 | /** |
|
| 3271 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3311-3318 (lines=8) @@ | ||
| 3308 | * |
|
| 3309 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3310 | */ |
|
| 3311 | public static function min($arg) |
|
| 3312 | { |
|
| 3313 | if (is_array($arg)) { |
|
| 3314 | $arg = implode('', $arg); |
|
| 3315 | } |
|
| 3316 | ||
| 3317 | return self::chr(min(self::codepoints($arg))); |
|
| 3318 | } |
|
| 3319 | ||
| 3320 | /** |
|
| 3321 | * alias for "UTF8::normalize_encoding()" |
|