RE: [PHP] What does "<<<" mean?
| From: | Daevid Vincent | Date: | Mon, 30 Apr 2007 23:33:25 +0000 |
| Subject: | RE: [PHP] What does "<<<" mean? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254166@lists.php.net to get a copy of this message | ||
> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n";
I've always had problems with heredoc when I try using arrays like that. I
will either pull them into a straight $foo, or use the ${} thing.
> echo <<<EOF
> BROWSER: $_SERVER[HTTP_USER_AGENT]
> EOF;
Isn't that form (sans quote marks) deprecated and frowned upon?