Re: Using 'print <<<END'
| From: | Duncan Hill | Date: | Tue, 16 Sep 2003 07:38:52 +0000 |
| Subject: | Re: Using 'print <<<END' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162714@lists.php.net to get a copy of this message | ||
On Tuesday 16 Sep 2003 08:14, Rudi Starcevic wrote:
> Hi,
>
> When printing like this:
>
> print <<<END
> Hello world
> END;
>
> Is it at all possible to use a function in the output ?
> For example:
>
> print <<<END;
> strtolower("Hello World")
IIRC, heredocs print everything contained within literally, unless a
variable. using {} around the function might work, but I really doubt it.
This is where things like smarty templates come in handy.