How do you tell php to print only up to 2 decimal places
to 4.66 Or 4.67 depending on how it works?
For more info:
echo round(4.66666666667, 2); //Shows 4.67
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)