question about <<<EOF
| From: | LKSunny | Date: | Tue, 30 Sep 2008 04:48:35 +0000 |
| Subject: | question about <<<EOF | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-281148@lists.php.net to get a copy of this message | ||
Hello,
i want on inner EOF do something, calculate and call function ? can not ? if
yes, how to ?
<?
echo <<<EOF
some text....
can i calculate on inner EOF ? 10*100 display 1000 ?
can i add function on inner EOF ? date('Y') display 2008 ?
any more text.
EOF;
//i want output is
/*
some text....
can i calculate on inner EOF ? 1000 display 1000 ?
can i add function on inner EOF ? 2008 display 2008 ?
any more text.
*/
?>
Thank You.