x
 
<!DOCTYPE html>
<html>
<body>
<?php
echo substr_compare("Hello world!","Hello world!",0)."<br>"; // 两个字符串相等
echo substr_compare("Hello world!","Hello",0)."<br>"; // 字符串1大于字符串2
echo substr_compare("Hello world!","Hello world! Hello!",0)."<br>"; // 字符串1小于字符串2
?>
</body>
</html>