At 12:48 PM +0800 9/30/08, LKSunny wrote:
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.
*/
?>


Like I tell my dogs "Don't do it inside".

Place your decision making outside of the herdoc and then branch to whatever heredoc you want.

My advice,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to