holman/spark — Issue #32: PHP Port =D
Author: Koolvin
Created: 2011-11-15 22:03:46+00:00
State: open

```PHP
function print_tick($numbers,$delimiter = ',') {
$ticks = array(▁,▂,▃,▅,▅,▆,▇);
$sorted = explode($delimiter,$numbers);
sort($sorted);
foreach (explode($delimiter,$numbers) as $i => $tick)
$out .= $ticks[round(($tick / ($sorted[count($sorted)-1] == 0 ? 1 : $sorted[count($sorted)-1])) * (count($ticks)-1))];
return $out;
}
```