> Is there a way to count the number of words in a string? Untested, but this should work.
$string = "Is there a way to count the number of words in a string?" $numOfWords = count( explode( " ", $string )); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php