constants in heredoc
- From: Jeff <dont_bug_me@xxxxxx>
- Date: Mon, 29 Dec 2008 12:12:38 -0500
How do I use a constant in a heredoc?
$sample = <<<sample_code
SOME_CONSTANT
sample_code;
echo $sample;
The constant in that case is just showing it's "name".
Jeff
.
- Follow-Ups:
- Re: constants in heredoc
- From: "Álvaro G. Vicario"
- Re: constants in heredoc
- Prev by Date: Re: asynchronous PHP
- Next by Date: Re: constants in heredoc
- Previous by thread: Firebug
- Next by thread: Re: constants in heredoc
- Index(es):