Comment modes behavior in HTML and PHP

From: Date: Sat, 28 Jul 2007 14:40:07 +0000
Subject: Comment modes behavior in HTML and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-259740@lists.php.net to get a copy of this message
I have a PHP script, as follows: <!-- <?php echo "should this be echoed ?"; ?> --> As expected, the browser shows nothing, but when I view Source in the browser, I see: <!-- start HTML comment should this be echoed ?--> Shouldn't it be just: <!-- -->, without the echo result ? I don't expect PHP to be active between <!-- -->. TIA, Cor

« previous php.general (#259740) next »