运行 ❯
获取您自己的
PHP
服务器
×
更改方向
更改主题,暗色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <?php $str = "abcabcab"; echo substr_count($str,"abcab"); // This function does not count overlapped substrings, and will therefore only print 1 ?> </body> </html>
1