Re: Using 'print <<<END'
| From: | - Edwin - | Date: | Tue, 16 Sep 2003 08:41:09 +0000 |
| Subject: | Re: Using 'print <<<END' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162724@lists.php.net to get a copy of this message | ||
Hi,
Rudi Starcevic <rudi@oasis.net.au> 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")
> END;
>
> So far I've been unable to make it function work.
Hmm... I don't think that'll work. This one should though:
$my_string = strtolower("Hello World");
print <<<END
$my_string
END;
--
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/