')));
// 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 '';
// Assign a font-size to the word based on frequency of use.
foreach ($a as $word => $count) {
$size = $count * 40;
// The keyword needs to be referenced 2 or more times to register.
if ($count >= 2) {
echo "- $word
\n";
}
}
echo "
\n";
?>