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