Re: How to comment out chunk of html/php mixed code?
| From: | Robert Cummings | Date: | Mon, 15 Sep 2003 20:05:46 +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-162654@lists.php.net to get a copy of this message | ||
You might try the following:
<!-- <?php /*
*/ ?> -->
This is untested, I've never had to face the issue.
Cheers,
Rob.
On Mon, 2003-09-15 at 15:59, Wei Wang 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?
>
>
> Many thanks,
>
> Wei Wang
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'