Re: Heredoc question

From: Date: Thu, 05 Jun 2003 22:51:40 +0000
Subject: Re: Heredoc question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150425@lists.php.net to get a copy of this message
That's fine for that but I have several places that use if's and else's... Sparky ----- Original Message ----- From: "Jennifer Goodie" <goodie@apollointeractive.com> To: "Sparky Kopetzky" <sparkyk@blackmesa-isp.net>; "PHP General" <php-general@lists.php.net> Sent: Thursday, June 05, 2003 16:47 Subject: RE: [PHP] Heredoc question > > Can one use <?php ?> within the heredoc syntax or is there > > another way?? I'm trying to dynamically generate email from > > generic text but with obvious additions, like this: > > http://us4.php.net/types.string says that heredoc acts just > like double > quoted, which would mean it expands variables, so I would try just throwing > them in there like this... > > > $message = <<<my_message > Name: {$lot->get_name()} > > Lot {$lot->get_id()} has been approved. Here is the > link to the lot: > my_message; > > > There's an example of almost exactly like this on that page. > > > > > >

« previous php.general (#150425) next »