<html>
<body>
setlocale (LC_COLLATE, 'NL');
echo strcoll("Hello World!","Hello World!");
echo "<br>";
setlocale (LC_COLLATE, 'en_US');
echo strcoll("Hello World!","Hello World!");
<p>If this function returns 0, the two strings are equal.</p>
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_strcoll by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:59 GMT -->
</html>
If this function returns 0, the two strings are equal.