strnatcmp
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
String comparisons using a "natural order" algorithm
strnatcmp
(
string $string1
,
string $string2
):
int
composer/composer
};
uksort
(
$packages
, function (
$a
,
$b
) use (
$prefix
) {
return
strnatcmp
(
$prefix
(
$a
),
$prefix
(
$b
));
});
}
src/Composer/Json/JsonManipulator.php