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

From: Date: Sat, 06 Sep 2014 09:54:13 +0000
Subject: note 115680 added to language.basic-syntax.instruction-separation
Groups: php.notes 
Request: Send a blank email to php-notes+get-200386@lists.php.net to get a copy of this message
One thing to remember is, if you decide to omit the closing PHP tag, then the last line of the file should be ended with semi colon. If you add the closing tag then last line doesn't need to end with semi colon. <?php echo "First line"; echo "Last line" The above code throws error as it neither has closing tag nor semicolon ending. So it should be replaced with either of the below two <?php echo "First line"; echo "Last line"; or <?php echo "First line"; echo "Last line" ?> ---- Server IP: 72.52.91.14 Probable Submitter: 125.16.95.11 ---- Manual Page -- http://php.net/manual/en/language.basic-syntax.instruction-separation.php Edit -- https://master.php.net/note/edit/115680 Del: integrated -- https://master.php.net/note/delete/115680/integrated Del: useless -- https://master.php.net/note/delete/115680/useless Del: bad code -- https://master.php.net/note/delete/115680/bad+code Del: spam -- https://master.php.net/note/delete/115680/spam Del: non-english -- https://master.php.net/note/delete/115680/non-english Del: in docs -- https://master.php.net/note/delete/115680/in+docs Del: other reasons-- https://master.php.net/note/delete/115680 Reject -- https://master.php.net/note/reject/115680 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200386) next »