note 22570 added to language.basic-syntax.instruction-separation
| From: | stlawson at sbcglobal dot net | Date: | Sun, 23 Jun 2002 01:32:29 +0000 |
| Subject: | note 22570 added to language.basic-syntax.instruction-separation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32120@lists.php.net to get a copy of this message | ||
My philosophy is to always add the semi-colon to the last statement (the one just before the
'?>'). That way, if more PHP code is ever inserted there, it won't break the
script if the new author forgets to add the semi-colon. I call this 'Defensive
Programming'.
--
http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
http://master.php.net/manage/user-notes.php?action=edit+22570
http://master.php.net/manage/user-notes.php?action=delete+22570
http://master.php.net/manage/user-notes.php?action=reject+22570