php subtracting fixed value to price value
<p>I have a variable with a float value, I need to subtract a fixed value of 0.50, until it reaches 0.</p>

<p>How do I do this?</p>

<pre><code>$price = 1.50; // float value, variable
$subtract = 0.50;

//I think I need of loop...
for($i=0;$i&lt;$price;$i++){

}

// result must be 1.50 - 1.00 - 0.50 - 0.00
</code></pre>
