parse($content); /* echo '
';
	print_r($arrOutput);
	echo '
'; */ $tags = array(); $freqs = array(); $i = 0; foreach($arrOutput[0][children] as $thisTag) { $tagName = $thisTag[children][0][tagData]; $tagFreq = $thisTag[children][1][tagData]; $tags[$i] = $tagName; $freqs[$i] = $tagFreq; $i++; } array_multisort($tags, $freqs); echo "
tag cloud for $url:
\n"; if (count($freqs)) { $avgFreq = round( array_sum($freqs) / count($freqs) ); $i = 0; echo "
"; foreach($tags as $thisTag) { $tagFreq = round($freqs[$i]/$avgFreq)+10; echo ""; echo '' . $thisTag . " \n"; $i++; } echo "
"; } else echo "no hits for this url."; } else { $url = 'http://'; } echo '
enter site to get a tag cloud for:
'; echo "
\n"; echo " \n"; echo "
\n"; ?>


the php source that makes this page run: