Re: Syntax Help, Please
| From: | Robin Vickery | Date: | Tue, 15 Jun 2004 17:51:04 +0000 |
| Subject: | Re: Syntax Help, Please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188338@lists.php.net to get a copy of this message | ||
On Tue, 15 Jun 2004 13:20:24 -0400, Steve Douville <php@douville.net> wrote:
>
> I've forgotten how to assign something like this...
>
> $someStr = EOF>>>"
> bunch of raw non-echo'd html
> "
> EOF>>>;
>
> But can't seem to get the right syntax. Tried looking in the manual, but
> don't even know what I'm looking for!
<?php
$someStr = <<<EOF
anything you want
EOF;
?>
Here they are in the manual:
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
-robin