$atricl = ‘Ahead of the much-anticipated release of her new”;

$rtyu = str_word_count($atricl,1);

$count = str_word_count($atricl);

str_word_count($atricl) give you total number of words and str_word_count($atricl,1) give you array of words.

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.