note 74576 deleted from language.basic-syntax by drak

From: Date: Wed, 14 Mar 2012 18:51:43 +0000
Subject: note 74576 deleted from language.basic-syntax by drak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186664@lists.php.net to get a copy of this message
Note Submitter: madman ---- 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.

« previous php.notes (#186664) next »