Re: formatting
| From: | Stuart Dallas | Date: | Mon, 17 Jun 2002 16:23:14 +0000 |
| Subject: | Re: formatting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102539@lists.php.net to get a copy of this message | ||
Monday, June 17, 2002, 5:20:18 PM, you wrote:
> echo "<td><font size=1 face=arial>£$itemtotal</font></td>";
> How do I output that with the format £0.00? At the moment if there is
> only 3 digits when the items are added up it will come out as £0.0.
http://www.php.net/number_format
echo "<td><font size=1 face=arial>£".number_format($itemtotal,
2)."</font></td>";
--
Stuart