Count Words

Count the number of whitespace-separated words in a string.

Code

General
str_word_count($str);

Parameters

The string to count words in

Server

More PHP Snippets