Re: php: number_format()
- From: Schraalhans Keukenmeester <nomail@xxxxxxxxxx>
- Date: Wed, 28 Sep 2005 01:20:08 +0200
Ian Rutgers wrote:
I am using number_format() to align numbers in a column on the decimal. Is there a way to suppress zeros or am I to write a function to test for zero values in a column (as a result of using the number_format())?
Thanks in advance
ian
You could use:
$outstr = $value ? number_format($value) : "-"; or something similar or the traditional "if"...
Success SH .
- References:
- php: number_format()
- From: Ian Rutgers
- php: number_format()
- Prev by Date: Re: How to login to htaccess box
- Next by Date: Re: Coding style: PHP with Complex MySQL statements
- Previous by thread: php: number_format()
- Next by thread: Coding style: PHP with Complex MySQL statements
- Index(es):