note 125164 deleted from control-structures.intro by cmb
| From: | cmb@php.net | Date: | Wed, 03 Mar 2021 12:58:43 +0000 |
| Subject: | note 125164 deleted from control-structures.intro by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-219220@lists.php.net to get a copy of this message | ||
Note Submitter: Hayley Watson
----
Statements "usually" end with a semicolon. In particular, statements that are
statement-groups end with the "}", and a closing "?>" is also enough to end a
statement (and turn off parsing, of course).
Writing "};" is wrong and can lead to bugs because now there's one of those
"empty" statements in there that could potentially mess with control flow.