strcoll

Supported Versions: PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
Locale based string comparison
<?php strcoll(string $string1, string $string2): int
<?php                             SORT_NUMERIC => intval($values[0]) <=> intval($values[1]),

                            SORT_STRING => strcmp($values[0], $values[1]),

                            SORT_NATURAL => strnatcmp($values[0], $values[1]),

                            SORT_LOCALE_STRING => strcoll($values[0], $values[1]),

                            default => $values[0] <=> $values[1],

                        };

                    }