Re: closing ?> tag.

From: Date: Mon, 22 Oct 2001 22:35:34 +0000
Subject: Re: closing ?> tag.
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-68741@lists.php.net to get a copy of this message
Jan Lehnardt wrote: Hi, is it intended, that the ?> tag can look like whatdoyouwant?> und php
gives no error on it? its either a bug or an undocumented feature. due
to consistence i'd vote for allowing ?> only. Jan
I think this is intended and I don't see any problems with this. You are suggesting to allow only "?>" tag at the beginning of line or preceeded by spaces, right? According to your suggestion, following code wouldn't work anymore. <?php print "abc"?> <?php print "abc";?> <?php print "abc" //print abc?> <?php print SOME_CONSTANT?> These "?>" tag would not be end tag. I might misunderstand what you are suggesting, though. -- Yasuo Ohgaki _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.dev (#68741) next »