How do you tell php to print only up to 2 decimal places
to 4.66 Or 4.67 depending on how it works?
echo round(4.66666666667, 2); //Shows 4.67
For more info:
oh and what is the main difference of
print and echo??
because someitmes i see print, sometimes i see echo. Is there a better one or what?
For that, I'll redirect you here:
Check out the first 2 hits, they have enough info about your question.
I think that this is closer to what Justin wants.