note 12459 deleted from language.basic-syntax by philip
| From: | philip@php.net | Date: | Wed, 03 Oct 2001 20:00:10 +0000 |
| Subject: | note 12459 deleted from language.basic-syntax by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18534@lists.php.net to get a copy of this message | ||
This note may not appropriate for this section.
I think there should be description about code block some where obvious place in this manual.
For example, "if" statement code block as follows,
if (<conditional expression>) {
/* Block of code here */
}
Without "{" and "}", PHP parser treat line end with ";" as code for
"if" condition is true.
This should be obvious to C/C++/Java/Perl and many other language programmers, but it may not be
obvious to new programmers and pure Pascal programmers. (There should be many other languages that
does not use "{" and "}" for code block)
Since this section seems most appropriate section to me, I post this errata here.