Re: Re: [PHP] String parsing issue in PHP 4.3.10?
| From: | John Holmes | Date: | Wed, 22 Dec 2004 00:18:11 +0000 |
| Subject: | Re: Re: [PHP] String parsing issue in PHP 4.3.10? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-204909@lists.php.net to get a copy of this message | ||
> You will notice
> that the previous line also contains a '?>' sequence, so I'm confused
> as to why this would "die" on one line but not the other? Or is this
> some freak combination of comments and PHP tags? :-o
It is, I guess.
<?php
$a = ' ?> ';
$b = ' ?> ';
?>
will work just fine. If you try to comment out either line, though, the PHP processing will end at
the ?> and spit out the rest as plain text. So, text can have as many ?> as you want and the
only issue comes when you try to comment one of them out.
---John Holmes...
UCCASS - PHP Survey System
http://www.bigredspark.com/survey.html