Re: // ?>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 6, 2007 10:33 PM, Richard Lynch <ceo@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux