note 65621 deleted from control-structures.else by bjori
| From: | bjori@php.net | Date: | Fri, 14 Dec 2007 20:01:07 +0000 |
| Subject: | note 65621 deleted from control-structures.else by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133480@lists.php.net to get a copy of this message | ||
Note Submitter: gwmpro at yahoo dot com
----
I am new to this language. It seems to me that only the semicolon ';' is required, the
brackets '{}' are not if there is only one statement. The code segment below would be
legal.
<?php
if ($a > $b)
echo "a is bigger than b";
else
echo "a is NOT bigger than b";
?>