getTags(); $maxTagCount = 0; $minTagCount = 10000000; $minFontSize = 12; $maxFontSize = 36; $fontRange = $maxFontSize - $minFontSize; foreach ($tags as $tagName=>$tagCount) { $cnt = $tagCount; $tagUrl = "http://del.icio.us/$username/$tagName"; if ($cnt > $maxTagCount) $maxTagCount = $cnt; if ($cnt < $minTagCount) $minTagCount = $cnt; $tagCountRange = $maxTagCount+1 - $minTagCount; $fsize = $minFontSize + $fontRange * ($cnt - $minTagCount)/$tagCountRange; printf("%s\n", $tagUrl,(int)$fsize,$tagName); } ?>