| @@ 3189-3196 (lines=8) @@ | ||
| 3186 | * |
|
| 3187 | * @return string <p>The character with the highest code point than others.</p> |
|
| 3188 | */ |
|
| 3189 | public static function max($arg) |
|
| 3190 | { |
|
| 3191 | if (is_array($arg)) { |
|
| 3192 | $arg = implode('', $arg); |
|
| 3193 | } |
|
| 3194 | ||
| 3195 | return self::chr(max(self::codepoints($arg))); |
|
| 3196 | } |
|
| 3197 | ||
| 3198 | /** |
|
| 3199 | * Calculates and returns the maximum number of bytes taken by any |
|
| @@ 3239-3246 (lines=8) @@ | ||
| 3236 | * |
|
| 3237 | * @return string <p>The character with the lowest code point than others.</p> |
|
| 3238 | */ |
|
| 3239 | public static function min($arg) |
|
| 3240 | { |
|
| 3241 | if (is_array($arg)) { |
|
| 3242 | $arg = implode('', $arg); |
|
| 3243 | } |
|
| 3244 | ||
| 3245 | return self::chr(min(self::codepoints($arg))); |
|
| 3246 | } |
|
| 3247 | ||
| 3248 | /** |
|
| 3249 | * alias for "UTF8::normalize_encoding()" |
|