Source Code:
(back to article)
<?php $string = "The quick brown fox jumps over the lazy dog."; $count = str_word_count($string); echo $count; // Output: 9 ?>
Result:
Report an issue