Re: Never liked printf, why is it doing this?
- From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 10:40:48 +0200
*** Chris Hope wrote/escribió (Fri, 29 Apr 2005 07:41:37 +1200):
>> You want sprintf(), not printf() above.
>
> or structure it like this:
>
> printf("<br>Total Value of Orders: $%01.2f<br>", $sum_value);
O maybe: http://www.php.net/number_format
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
.
- References:
- Never liked printf, why is it doing this?
- From: Bob
- Re: Never liked printf, why is it doing this?
- From: Gordon Burditt
- Re: Never liked printf, why is it doing this?
- From: Chris Hope
- Never liked printf, why is it doing this?
- Prev by Date: Re: Include php from html
- Next by Date: Re: PHP-.htaccess-CGI
- Previous by thread: Re: Never liked printf, why is it doing this?
- Next by thread: PLEASE HELP
- Index(es):