'))); // Break up the string into an array $wordlist = explode(' ',$string); // Build an array of the unique words and number of times they occur. $a = array_count_values($wordlist); // Sort the keys alphabetically. ksort($a); // Print the data. echo '\n"; ?>