try visit this code from http://www.reconn.us/count_words.html function adv_count_words($str) { $words = 0; $str = eregi_replace(" +",...
Separate names with a comma.