运行 ❯
获取您的
自有 PHP
服务器
×
更改方向
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php print_r(str_word_count("Hello world & good morning!",1)); print "<br>"; print_r(str_word_count("Hello world & good morning!",1,"&")); ?> </body> </html>
Array ( [0] => Hello [1] => world [2] => good [3] => morning )
Array ( [0] => Hello [1] => world [2] => & [3] => good [4] => morning )