What is use of str_word_count() function in php? str_word_count() function is used to count the number of words present in a given string in PHP. 22-August 9:01 PM 450 Views