Re: contstant in heredoc <<<

From: Date: Sat, 20 Oct 2001 05:03:25 +0000
Subject: Re: contstant in heredoc <<<
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71666@lists.php.net to get a copy of this message
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

« previous php.general (#71666) next »