/* PHP & MySQL Journal */
Zend framework provides many interesting wrappers for major service APIs like Akismet, Amazon, Audioscrobbler, Delicious, Flickr, Nirvanix, etc.
In this post we will use the delicious wrapper to create a tag cloud for your delicious account.
.
.
.
|
|
This site is a digital habitat of Sameer, a freelance web developer working from Pune.More
3 Responses
1
kiran aghor
April 8th, 2008 at 8:28 am
kool. How easy it that…
2
mcguillan
August 10th, 2009 at 2:13 am
The script does not work properly, because the max is unknown at the beginning.
3
mcguillan
August 10th, 2009 at 2:22 am
In order to make it work you just have to add another foreach before the foreach with the print to get the min and max:
foreach ($tags as $tagName=>$tagCount)
{
$cnt = $tagCount;
if ($cnt > $maxTagCount) $maxTagCount = $cnt;
if ($cnt < $minTagCount) $minTagCount = $cnt;
}