运行 ❯
获取您
自己的 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