|
Posted by Fabio on 09/07/07 20:05
"gosha bine" <stereofrog@gmail.com> ha scritto nel messaggio
news:46e17257$0$31118$6e1ede2f@read.cnntp.org...
> On 07.09.2007 17:31 Fabio wrote:
>> Why this code
>>
>> <?php
>> function X()
>> {
>> // echo("commented ?>");
>> }
>> X();
>> ?>
>>
>> give the error
>> "Parse error: syntax error, unexpected $end"
>>
>> ???
>>
>> ?> is into a string commented!
>
> no, it is not. There's no "strings" inside comments, comment is a stream
> of characters and does take ?> into account. I don't think this is a good
> idea either, but so is it.
but
/* echo("commented ?>"); */
works well... :(
Navigation:
[Reply to this message]
|