Re: Format of Print
| From: | Joseph Hadinata | Date: | Thu, 14 Dec 2000 04:36:40 +0000 |
| Subject: | Re: Format of Print | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-5232@lists.php.net to get a copy of this message | ||
Try this:
echo "\$" . number_format($VariableName,0,'.',',');
Best regards,
Joseph Hadinata
BlueChillies Download Destination
http://BlueChillies.com
--- ORIGINAL MESSAGE ---
Format of Print
I have a question regarding formatting a number field to print as currency
using the print command. Now, my print command reads;
print $VehInventory->MarketValue
VehInventory is the table name
MarketValue is a 10 digit, numeric field which now displays 25000 and I want
$25,000
Can you help?
Thanks