note 65621 added to control-structures.else
| From: | gwmpro at yahoo dot com | Date: | Thu, 04 May 2006 15:00:03 +0000 |
| Subject: | note 65621 added to control-structures.else | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110551@lists.php.net to get a copy of this message | ||
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";
?>
----
Server IP: 66.163.161.117
Probable Submitter: 64.115.76.106
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/control-structures.else.php
Edit -- http://master.php.net/note/edit/65621
Del: integrated -- http://master.php.net/note/delete/65621/integrated
Del: useless -- http://master.php.net/note/delete/65621/useless
Del: bad code -- http://master.php.net/note/delete/65621/bad+code
Del: spam -- http://master.php.net/note/delete/65621/spam
Del: non-english -- http://master.php.net/note/delete/65621/non-english
Del: in docs -- http://master.php.net/note/delete/65621/in+docs
Del: other reasons-- http://master.php.net/note/delete/65621
Reject -- http://master.php.net/note/reject/65621
Search -- http://master.php.net/manage/user-notes.php