Pierce wrote:

> is it possibe to include defined constant in heredoc block?
> for example:
> define("_ACONST_","CONSTVAL");
> $str = <<<EOL
> value is _ACONST_
> EOL;
> echo $str;
> 
> *Normal* variables usage in {} doesn't woks :((
> 

Heredoc treat string as if they are enclosed by "". So constant 
does not work obviously....

--
Yasuo Ohgaki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to