<html>
<body>
echo substr_compare("Hello world!","Hello world!",0)."<br>"; // the two strings are equal
echo substr_compare("Hello world!","Hello",0)."<br>"; // string1 is greater than string2
echo substr_compare("Hello world!","Hello world! Hello!",0)."<br>"; // string1 is less than string2
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_substr_compare4 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:07 GMT -->
</html>