|
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]
|