include 'classes/tagcloud.php';
$cloud = new tagcloud();
$cloud->addTag("tag-cloud");
$cloud->addTag("programming");
echo $cloud->render();
$cloud->addString("This is a tag-cloud script, written by Del Harvey. I wrote this tag-cloud class because I just love writing code.");
$cloud->addTags(array('tag-cloud','php','github'));
$cloud->setRemoveTag('github');
$cloud->setRemoveTags(array('del','harvey'));
$cloud->addTag(array('tag' => 'php', 'url' => 'http://www.php.net', 'colour' => 1));
$cloud->addTag(array('tag' => 'ajax', 'url' => 'http://www.php.net', 'colour' => 2));
$cloud->addTag(array('tag' => 'css', 'url' => 'http://www.php.net', 'colour' => 3));
$cloud->setMinLength(3);
$cloud->setLimit(10);
$cloud->setOrder('colour','DESC');
echo $cloud->render();
More usages on in a prettier format can be found here: http://lotsofcode.github.com/tag-cloud