note 74576 added to language.basic-syntax

From: Date: Wed, 18 Apr 2007 03:45:08 +0000
Subject: note 74576 added to language.basic-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-125539@lists.php.net to get a copy of this message
As rosswilliams mentioned; The example breaking in and out of the PHP tags doesn't "work as expected". The manual and some comments mention that PHP "simply starts outputting whatever it finds..." any time a closing tag is encountered. It would make sense to say instead - "...unless PHP is in the middle of a conditional statement; in which case it will only output the relevant block of HTML." Some have said that using the 'echo' command is cleaner and more efficient. However, as the manual points out, the method of breaking out of PHP is more efficient when dealing with large sections of HTML. Because there is less work for the parser. ---- Server IP: 69.147.83.197 Probable Submitter: 71.38.133.40 ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php Edit -- https://master.php.net/note/edit/74576 Del: integrated -- https://master.php.net/note/delete/74576/integrated Del: useless -- https://master.php.net/note/delete/74576/useless Del: bad code -- https://master.php.net/note/delete/74576/bad+code Del: spam -- https://master.php.net/note/delete/74576/spam Del: non-english -- https://master.php.net/note/delete/74576/non-english Del: in docs -- https://master.php.net/note/delete/74576/in+docs Del: other reasons-- https://master.php.net/note/delete/74576 Reject -- https://master.php.net/note/reject/74576 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125539) next »