phpsnippets
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| phpsnippets [2008/02/20 05:24] – 58.107.99.248 | phpsnippets [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< | for($i=0; $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 '< | + | echo '< |
| } | } | ||
| </ | </ | ||
phpsnippets.1203485055.txt.gz · Last modified: (external edit)
