User Tools

Site Tools


phpsnippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
phpsnippets [2008/02/20 05:24] 58.107.99.248phpsnippets [2009/11/23 11:49] (current) – Add mighty “-1” 212.84.235.66
Line 115: Line 115:
     $tresholds = array();     $tresholds = array();
     for($i=0; $i<=$levels; $i++){     for($i=0; $i<=$levels; $i++){
-        $tresholds[$i] = pow($max - $min + 1, $i/$levels) + $min;+        $tresholds[$i] = pow($max - $min + 1, $i/$levels) + $min - 1;
     }     }
  
Line 135: Line 135:
  
 foreach($tags as $tag => $size){ foreach($tags as $tag => $size){
-  echo '<span style="font-size:"'.(($size*0.5)+0.5).'em">'.$tag.'</span> ';+  echo '<span style="font-size:'.(($size*0.5)+0.5).'em">'.$tag.'</span> ';
 } }
 </code> </code>
phpsnippets.1203485055.txt.gz · Last modified: 2009/08/23 18:58 (external edit)