$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.

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.