简单教程
提交运行
代码编辑器:
<?php $str = "abcabcab"; echo substr_count($str,"abcab");
运行结果: