Return to Snippet

Revision: 15610
at July 11, 2009 17:02 by blackf0rk


Initial Code
$double = 1.5;
$price = "$".number_format($double,2);
#returns "$1.50"

Initial URL

                                

Initial Description

                                

Initial Title
Format Currency

Initial Tags
php, format

Initial Language
PHP