PHP 8.5.0 Alpha 1 available for testing

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

erik at eldata dot se
4 years ago
strcmp and strcasecmp does not work well with multibyte (UTF8) strings and there are no mb_strcmp or mb_strcasecmp - instead look at the wonderful Collator class with method compare (search for Collator above) - supports not only UTF8 but also different national collations (sort orders).

Natural sort is also supported, use setAttribute to set Collator::NUMERIC_COLLATION to Collator::ON.

<< Back to user notes page

To Top