You are here: Re: [PHP] what does this mean? « PHP « IT news, forums, messages
Re: [PHP] what does this mean?

Posted by Jochem Maas on 10/04/30 11:09

Jason Barnett wrote:
> Leif Gregory wrote:
>
>>Hello Diana,
>>
>>Friday, February 25, 2005, 7:07:29 AM, you wrote:
>>D> on which page of php.net can I find out what this code does?
>>D> $a = $b? $a :"dian";
>>
>>
>>It's called a ternary operator, basically an if-else statement.
>
>
> Note to self: write "ternary" on the blackboard 100 times.

I thought 'tertiary' also - I could remember the 'other' name...
I was under the impression that both names were valid..
anyone know if this is true? google brings up relevant hits for
both, from what I gather ternary is more correct.

>
> Yep, it's just a fancy if-else statement.
>
>

 

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

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