Re: // ?>

From: Date: Thu, 06 Dec 2007 17:03:50 +0000
Subject: Re: // ?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265515@lists.php.net to get a copy of this message
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?

« previous php.general (#265515) next »