Re: Re: String parsing issue in PHP 4.3.10?

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

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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