Re: what does this mean?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux