PHP number format

J

juanpablo

Hi,

I ve been trying to format the result of the following code, but no success
at all!!!
I need to have the variable $c_2_f printed with with thousands separator.
How do i do it?

<?php
if ($scale == "carton")
{print "<table border><tr><th colspan=2> Resultado</th></tr>";
$c_2_f = $kg*440.6;
print "<tr><td>$c_2_f</td><td>gramos Co2</td></tr>"; }
?>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top