??? ?? ??;

PHP strnatcasecmp() ?? ???

??: "??" ????? ???? ? ??? ??(???? ??):

??: ??strnatcasecmp(string1,string2)

????:

???? ??
string1 ??, ??? ? ?? ???? ?????.
string2 ??, ??? ? ?? ???? ?????.

??: strnatcasecmp() ??? "??" ????? ???? ? ???? ?????. ??????? ?? 2? ?? 10?? ????. ??? ????? 10? ? ?? ??? 2?? ?? ??? 10? 2?? ????. strnatcasecmp()? ????? ???? ????. ? ???? ???? 0? ?????. string1? string2?? ?? ?? ?? 0?? ???. string1? string2?? ??? ?? ?? 0

?? ????.

PHP strnatcasecmp() ?? ?

<?php
echo strnatcasecmp("2hello world!","01hello world!");
echo "<br>";
echo strnatcasecmp("01hello world!","2hello world!");
?>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????

??:

1
-1