Which built-in PHP functions you can use to compare two strings using a "natural" algorithm?
Select all that apply.
Explanation
strnatcasecmp() - Case insensitive string comparisons using a "natural order" algorithm.
strnatcmp() - String comparisons using a "natural order" algorithm Example:
";
echo strnatcasecmp("10Hello world!","2Hello WORLD!");
?>
Result:
-1
1

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes