note 20825 rejected from control-structures.alternative-syntax by sander
| From: | sander@php.net | Date: | Wed, 17 Apr 2002 13:45:49 +0000 |
| Subject: | note 20825 rejected from control-structures.alternative-syntax by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29483@lists.php.net to get a copy of this message | ||
A very quick way to write an if else control structure in stead of the common way:
if($a)
echo "a ok";
else
echo "a not ok";
is the following way:
$a?echo "a ok":echo "a not ok";