note 10496 added to Control Structures
| From: | terium at techie dot com | Date: | Sun, 07 Jan 2001 20:38:31 +0000 |
| Subject: | note 10496 added to Control Structures | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9454@lists.php.net to get a copy of this message | ||
Just like you can do:
if (expr)
statement;
You can also do:
if (expr)
statement;
else
statement;
...compared to the alternative:
if (expr) {
statement;
} else {
statement;
}
http://www.php.net/manual/control-structures.php