Re: Heredoc printing

From: Date: Wed, 16 Aug 2000 04:24:43 +0000
Subject: Re: Heredoc printing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11911@lists.php.net to get a copy of this message
Why not just do this: <? php code... ?> <tr> <td><? $cursor->Column("contactid") ?></td> </tr> - steve ----- Original Message ----- From: John Schuhr <jschuhr@hotmail.com> To: <php-general@lists.php.net> Sent: Tuesday, August 15, 2000 8:58 PM Subject: [PHP] Heredoc printing > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#11911) next »