News:

SMF - Just Installed!

Main Menu

Count the number of words found in the string

Started by KingSparta, Dec 16, 2023, 02:33 PM

Previous topic - Next topic

KingSparta

Count the number of words found in the string "Hello World!":

<?php
echo str_word_count("Hello world!");
?>