contstant in heredoc <<<
| From: | Pierce | Date: | Fri, 19 Oct 2001 23:00:46 +0000 |
| Subject: | contstant in heredoc <<< | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71643@lists.php.net to get a copy of this message | ||
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 :((
=-=-=--=
P.