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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to