Reply to Re: [PHP] if then else short form

Your name:

Reply:


Posted by Jochem Maas on 01/21/05 14:19

Ben Edwards wrote:
> I seem to remember seing someone use a abreaviated form of a
> if/them/else of the type that can be used in java.
>
> It was something like
>
> if ( a=b ) ? a=1 ; a=2;

I called it the 'tertiary' syntax which is not correct:

to quote a page I found: "
that the book refers to a "tertiary" operator, instead of a "ternary"
operator. Of course, "tertiary" means third. "Ternary" means having
three parts and is the correct way to describe the ?: operator.
Alternatively, this operator could be described as "trinary".
"

>
> Anybody know what the correct syntax is?
>
> Ben

[Back to original 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

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