function getCloud( $data = array(), $minFontSize = 12, $maxFontSize = 30 )
{
$minimumCount = min( array_values( $data ) );
$maximumCount = max( array_values( $data ) );
$spread = $maximumCount - $minimumCount;
$cloudHTML = '';
$cloudTags = array();
$spread == 0 && $spread = 1;
foreach( $data as $tag => $count )
{
$size = $minFontSize ( $count - $minimumCount )
* ( $maxFontSize - $minFontSize ) / $传播;
$cloudTags[] = '
}
/************************
**** 示例用法 ***/
$arr = Array('Actionscript' => 35, 'Adobe' => 22, '数组' => 44, '背景' => 43,
'模糊' => 18, '画布' => 15, '调色板' => 11, '裁剪' => 🎜>'分隔符'=> 13,'深度'=> 34,'设计'=> 8,'编码'=> 30,
'提取'=> ; 28, '过滤器' => 42);
echo getCloud($arr, 12, 36);