扫码下载编程狮APP
<?php $str = "abcabcab"; echo substr_count($str,"abcab"); // This function does not count overlapped substrings, and will therefore only print 1 ?>