Hi,
Monday, March 3, 2003, 8:02:14 AM, you wrote:
jvc> Can someone tell me what is wrong with the following code:
jvc>
jvc> Testing
jvc>
jvc> $str = << Example of string
jvc> spanning multiple lines
jvc> using heredoc syntax.
jvc> EOD;
?>>
jvc>
jvc>
jvc> This is code straight out of the
.
>
That's it. That is the problem. Good eye.
Thank you,
Janet
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Monday, March 03, 2003 9:02 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] heredoc problem
>>
March 03, 2003 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] heredoc problem
>
>
> Can someone tell me what is wrong with the following code:
>
>
> Testing
>
> $str = << Example of string
> spanning multiple lines
> using heredoc syntax.
>
At 23:02 02.03.2003, [EMAIL PROTECTED] said:
[snip]
>Can someone tell me what is wrong with the following code:
>
>This is code straight out of the PHP manual. I get the error:
>Parse error: parse error, unexpected T_SL in testhere.php on line 5
>
>I looked
Can someone tell me what is wrong with the following code:
Testing
This is code straight out of the PHP manual. I get the error:
Parse error: parse error, unexpected T_SL in testhere.php on line 5
I looked up T_SL and it is a token representing << so that means it just
doesn't get the <<<.
5 matches
Mail list logo