note 51475 deleted from control-structures.alternative-syntax by boo
| From: | boo@php.net | Date: | Mon, 30 Jan 2006 17:03:30 +0000 |
| Subject: | note 51475 deleted from control-structures.alternative-syntax by boo | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102732@lists.php.net to get a copy of this message | ||
Note Submitter: jasperbg at gmail dot com
----
paul at example dot com, and all saying that $x ? $y : $z is an alternative structure for if...else:
It's not! It's a completely separate operator, a comparison operator called the Ternary
operator. Look on this page:
http://php.net/language.operators.comparison