RE: [PHP] what does this mean?
| From: | Jay Blanchard | Date: | Fri, 25 Feb 2005 19:26:51 +0000 |
| Subject: | RE: [PHP] what does this mean? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-209422@lists.php.net to get a copy of this message | ||
[snip]
on which page of php.net can I find out what this code does?
$a = $b? $a :"dian";
[/snip]
It is a ternary IF statement...verbose
if ($a = $b){
$a;
} else {
"dian";
}