note 24066 deleted from function.define by dams
| From: | dams@php.net | Date: | Mon, 05 Aug 2002 20:14:20 +0000 |
| Subject: | note 24066 deleted from function.define by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34336@lists.php.net to get a copy of this message | ||
Understandably, constants don't work like variables inside here-document blocks:
Example:
-------
$name = 'John';
define('GREETING', 'Hello There');
print <<< EOF
GREETING $name
EOF;
-------
Prints:
-------
GREETING John
-------