简单教程
提交运行
代码编辑器:
<?php echo substr_compare("world","or",1,2),'<br/>'; echo substr_compare("world","ld",-2,2),'<br/>'; echo substr_compare("world","orl",1,2),'<br/>'; echo substr_compare("world","OR",1,2,TRUE),'<br/>'; echo substr_compare("world","or",1,3),'<br/>'; echo substr_compare("world","rl",1,2),'<br/>';
运行结果: