Posted by Schraalhans Keukenmeester on 09/28/05 02:20
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
Navigation:
[Reply to this message]
|