RE: [PHP] How to comment out chunk of html/php mixed code?

From: Date: Mon, 15 Sep 2003 20:15:53 +0000
Subject: RE: [PHP] How to comment out chunk of html/php mixed code?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162658@lists.php.net to get a copy of this message
> <?php /* > > your mixed html and php code here > > */ ?> > > that way php will take everything inside the <?php ?> tags and > comment them > out, regardless of if they are html or php or whatever. This won't work is your PHP code has comments using /* */ syntax in it already. I always just through an if(false){ } around huge portions of mixed content that I want to comment out. Unless you have unbalanced curly braces in the chunk you want to comment out, it should work.

« previous php.general (#162658) next »