I have the following php for loop
$screen = 1.3; // it can be other decimal value
for ($i = 1, $k = 0; $i <= $screen; $i += 0.1, $k+=25) {
echo $i . ' - ' . $k . '<br>';
}
It works fine but i would like to run the for loop til 1.3 - 75 now it print me 1.2 - 50. I try to change $i <= $screen to $i = $screen but it does not work.