Re: // ?>
| From: | Johny John | Date: | Fri, 14 Dec 2007 02:53:22 +0000 |
| Subject: | Re: // ?> | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265853@lists.php.net to get a copy of this message | ||
On Dec 6, 2007 10:33 PM, Richard Lynch <ceo@l-i-e.com> wrote:
> On Tue, December 4, 2007 7:41 pm, Kevin Schmeichel wrote:
> > Here's some unexpected behavior:
> >
> > <?php
> > // ?> what?
> > ?>
> >
> > This will output "what?" - I expected no output, as is the case if the
> > inline comment was a /* */ comment. Is this a bug?
>
> The <?php and ?> are parsed first, and the // only applies to
> everything up TO the ?> bit.
>
> Don't do that. :-)
>
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi All,
Its something interesting.
--
Regards,
Johny
www.phpshore.com