|
Posted by Leif Gregory on 02/25/05 21:28
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
[Back to original message]
|