$step = 3; $font_size_min = 8; $counts = 5; for ( $i=0; $i<=$counts; $i++) { $font_size[$i+1] = $font_size_min + $step * $i; }