Re: alternative control structure syntax
| From: | Matt | Date: | Thu, 16 Jan 2003 01:37:27 +0000 |
| Subject: | Re: alternative control structure syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131796@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Justin French" <justin@indent.com.au>
To: "php" <php-general@lists.php.net>
Sent: Wednesday, January 15, 2003 8:34 PM
Subject: [PHP] alternative control structure syntax
> Can someone point me to the page in the manual where this style of control
> structure syntax is documented?
>
> $var = ($something) ? "foo" : "bah";
It's called 'ternary conditional operator', and is in expressions
http://www.php.net/manual/en/language.expressions.php