Re: The <<< convension

From: Date: Wed, 17 Mar 2004 21:46:27 +0000
Subject: Re: The <<< convension
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180759@lists.php.net to get a copy of this message
And if you want the actual text "$variable" to be displayed, just use the backslash before the dollar symbol (e.g. "\$variable"). Chris W. Parker wrote:
Chris W. Parker <>
    on Wednesday, March 17, 2004 1:38 PM said:
it's choking on the $variable you've got in your heredoc text. you've probably got error reporting turned up so that it coughs on those kinds of errors. notice it didn't cause your program to fail.
i should also say.. if you put something like '$variable = "text";' above your heredoc, it'll probably work fine. of course it interpolates variables so it will replace $variable with "text" when it's displayed. chris.
-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

« previous php.general (#180759) next »