note 39887 deleted from language.operators by tularis
| From: | tularis@php.net | Date: | Tue, 12 Oct 2004 14:06:01 +0000 |
| Subject: | note 39887 deleted from language.operators by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78420@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at NOMEATPRODUCTcookfamily dot tv
----
It's called the ternary operator (read about it on the comparison operators page)
The expression (expr1) ? (expr2) : (expr3) evaluates to expr2 if expr1 evaluates to TRUE, and
expr3 if expr1 evaluates to FALSE.