round off to a given total in php
<p>I want to round off each value.  At the same, the sum should match the 
given total.</p>

<p><strong>eg.</strong></p>

<pre><code>total amount =100

a. 7.87 rounded off to  8
b.15.25 rounded off to 15
c.73.25 rounded off to 73
d. 2.75 rounded off to  3
                       ---
sum                    99
total                 100
</code></pre>

<p>my need to match sum to total in php.</p>

<p>can any help this out.</p>
