Re: what does this mean?
| From: | Leif Gregory | Date: | Fri, 25 Feb 2005 19:28:40 +0000 |
| Subject: | Re: what does this mean? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209394@lists.php.net to get a copy of this message | ||
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?
D> $a = $b? $a :"dian";
It's called a ternary operator, basically an if-else statement.
There really isn't a page (that I've found) that explains in on
php.net, but check out the user contributed notes on this page.
http://us4.php.net/manual/en/control-structures.alternative-syntax.php
--
Leif (TB lists moderator and fellow end user).
Using The Bat! 3.0.2.3 Rush under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB