note 125164 added to control-structures.intro

From: Date: Fri, 03 Jul 2020 23:19:26 +0000
Subject: note 125164 added to control-structures.intro
Groups: php.notes 
Request: Send a blank email to php-notes+get-214829@lists.php.net to get a copy of this message
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. ---- Server IP: 45.112.84.4 Probable Submitter: 101.0.109.162 (proxied: 122.58.117.40) ---- Manual Page -- http://php.net/manual/en/control-structures.intro.php Edit -- https://master.php.net/note/edit/125164 Del: integrated -- https://master.php.net/note/delete/125164/integrated Del: useless -- https://master.php.net/note/delete/125164/useless Del: bad code -- https://master.php.net/note/delete/125164/bad+code Del: spam -- https://master.php.net/note/delete/125164/spam Del: non-english -- https://master.php.net/note/delete/125164/non-english Del: in docs -- https://master.php.net/note/delete/125164/in+docs Del: other reasons-- https://master.php.net/note/delete/125164 Reject -- https://master.php.net/note/reject/125164 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214829) next »