Re: String parsing issue in PHP 4.3.10?
| From: | Jason Wong | Date: | Wed, 22 Dec 2004 09:07:45 +0000 |
| Subject: | Re: String parsing issue in PHP 4.3.10? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204942@lists.php.net to get a copy of this message | ||
On Wednesday 22 December 2004 08:18, John Holmes wrote:
> 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.
I'm sure it must be documented behaviour, because my syntax highlighting
editor seems to be aware of it. When I stick // in front of $a, the colour
for comments stop just before the ?>. And a quick check of the manual
confirms that it is documented behaviour.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The 357.73 Theory:
Auditors always reject expense accounts
with a bottom line divisible by 5.
unts
*/