Hello Marco,

"Marco Tabini" <[EMAIL PROTECTED]> wrote:

> You need to remove the semicolon from the beginning of your heredoc
> expression. The semicolon tells PHP (incorrectly) that the instruction
> terminates, while in fact it doesn't:

I think...

> <?php
> $name="John Doe"

you meant the semicolon at the end of ENDOFECHO; (below) and NOT at the end
of "John Doe"; (above)  ;)

- E

> echo <<< ENDOFECHO;
> <HTML>
> <BODY>
> <H3>ECHO TEST</H3>
> Hello, $name.
> </BODY>
> </HTML>
> ENDOFECHO;
> ?>
>
> This will work.
>
>


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

Reply via email to