App下载

demo_func_string_substr_count3 在线工具

demo_func_string_substr_count3 在线工具

<?php
$str = "abcabcab"; 
echo substr_count($str,"abcab"); // This function does not count overlapped substrings, and will therefore only print 1
?>
运行结果