主页
PHP
PHP substr_compare() 函数
tryphp_func_string_substr_compare4
运行 ❯
×
更改方向
保存代码
更改主题
<?php echo substr_compare("Hello world!","Hello world!",0)."
"; // the two strings are equal echo substr_compare("Hello world!","Hello",0)."
"; // string1 is greater than string2 echo substr_compare("Hello world!","Hello world! Hello!",0)."
"; // string1 is less than string2 ?>