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:
signature.asc
Description: OpenPGP digital signature