You are here: Re: not displaying null data when using number_format « All PHP « IT news, forums, messages
Re: not displaying null data when using number_format

Posted by linda on 11/01/06 18:52

"Steve" <no.one@example.com> wrote in message
news:HP52h.123$AR2.95@newsfe04.lga...
> sorry, confusing reference to ternary operators. i was refering to my
> original response to you in this thread. but to be even more clear, a
> ternary takes this form:
>
> $variable = <some condition> ? <return if condition is true> : <return if
> false>;
>
> ex;
>
> $price = '';
> $price = $price ? number_format($price, 2) : $price;
>
> so if price were '' or 0, price would not change. however if price were
> *anything* (even 'ABC'), then number_format(...) would have been called -
> although 'ABC' would have make it yell at you via errors shown in your
> browser output. ;^)
>
>

He he, it's OK I realised you where talking about the first, and that any
second now you'd being hollering down the net with the second, hehe.... now
this is scary, I don't even know you and I'm reading your mind! So what was
that bank account number again! ;-)

OK that was what I thought was happening, when vanity stoped me from
speaking forth! Great it is starting to sink in slowly...........

Best wishes,
Linda

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация