Re: How to comment out chunk of html/php mixed code?
| From: | Curt Zirzow | Date: | Mon, 15 Sep 2003 21:58:32 +0000 |
| Subject: | Re: How to comment out chunk of html/php mixed code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162671@lists.php.net to get a copy of this message | ||
On Mon, 15 Sep 2003 20:59:53 +0100, Wei Wang <ww220@cam.ac.uk> wrote:
hi, This may sound very newbie. But since html comment uses <!-- --> which doesn't comment out the php code. And the php comment /**/ // apparently doesn't work on html. So how do I comment out a chunk of html/php mixed code?for temporary comments I do what jennifer does and use a if(false) block to not execute it <?php if(false) { // other php code /* that has comments like this */ ?><html code><?php } // if false ?>