Re: what does this mean?
| From: | Jochem Maas | Date: | Fri, 25 Feb 2005 20:30:30 +0000 |
| Subject: | Re: what does this mean? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209431@lists.php.net to get a copy of this message | ||
Jason Barnett wrote:
Leif Gregory wrote: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.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?Note to self: write "ternary" on the blackboard 100 times.D> $a = $b? $a :"dian";It's called a ternary operator, basically an if-else statement.
Yep, it's just a fancy if-else statement.