Re: what does this mean?

From: Date: Fri, 25 Feb 2005 19:42:30 +0000
Subject: Re: what does this mean?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-209396@lists.php.net to get a copy of this message
Leif Gregory wrote: > 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. Note to self: write "ternary" on the blackboard 100 times. Yep, it's just a fancy if-else statement. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#209396) next »