This might be crazy, but I was thinking there might be a shorthand way to do this without using a loop on one php line... over-optimizing fun!
$stars = 4; // four out of ten stars
print stars with a loop
for($i=0;$i<$stars;$i++){
echo "<i class='fi-star'></i>";
}
print without loop
<?=implode("",array_fill(0,$stars,"<i class='fi-star'></i>"))?>
is there a simpler way?