note 125358 added to language.basic-syntax.instruction-separation

From: Date: Sat, 12 Sep 2020 16:57:43 +0000
Subject: note 125358 added to language.basic-syntax.instruction-separation
Groups: php.notes 
Request: Send a blank email to php-notes+get-215107@lists.php.net to get a copy of this message
At the end of each statement,we will use a semicolon to seperate each statement.Php closing tag autometically implies a semiclon.So last line of a statment do not require a statement. <?php echo "first statement"; echo "second statement" ?> Closing tag is optional and some cases omitting the closing tag is very helpful. 1.using include or require function 2.unwanted whitespace will not occur at the end of file 3.add header any time <?php echo "omitting closing tag"; ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.167.36 (proxied: 116.204.228.198) ---- Manual Page -- http://php.net/manual/en/language.basic-syntax.instruction-separation.php Edit -- https://master.php.net/note/edit/125358 Del: integrated -- https://master.php.net/note/delete/125358/integrated Del: useless -- https://master.php.net/note/delete/125358/useless Del: bad code -- https://master.php.net/note/delete/125358/bad+code Del: spam -- https://master.php.net/note/delete/125358/spam Del: non-english -- https://master.php.net/note/delete/125358/non-english Del: in docs -- https://master.php.net/note/delete/125358/in+docs Del: other reasons-- https://master.php.net/note/delete/125358 Reject -- https://master.php.net/note/reject/125358 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215107) next »