Heredoc printing

From: Date: Wed, 16 Aug 2000 03:58:17 +0000
Subject: Heredoc printing
Groups: php.general 
Request: Send a blank email to php-general+get-11909@lists.php.net to get a copy of this message
I've been playing with this for a few hours and I have several problems. First, I'm stubborn and second, I'm lazy. I could re-write this using a long drawn-out combination of prints and concatenations and/or variable setting prior to printing. But I'm trying to keep my code as compact and readable as possible. Ideally, I'd like to be able to do the following: print <<<EOT <tr> <td>$cursor->Column("contactid")</td> </tr> EOT; Unfortunately, this prints something like: <tr> <td>("contactid")</td> </tr> instead of printing: <tr> <td>48999</td> </tr> Any ideas? --John ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

« previous php.general (#11909) next »