<?php $string = "this is my my word with new word"; //echo count(str_word_count($string)); echo str_word_count($string); function unique_word_count($string) { $string = explode(' ', $string); $words = array_unique($string); return count($words); }
You have javascript disabled. You will not be able to edit any code.