Re: Re: forcing variable expansion

From: Date: Mon, 22 Sep 2003 13:27:56 +0000
Subject: Re: Re: forcing variable expansion
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-163464@lists.php.net to get a copy of this message
Sorry, we have a Eugene Lee at my aikido school and it's such an unusual name I thought you might be him. "Eugene Lee" <list-php@fsck.net> wrote in message news:20030922084734.GW22491@localhost.Earthlink.net... > On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote: > : "Eugene Lee" <list-php@fsck.net> wrote: > : > > : > If I have a block of text saved in an external text file, e.g.: > : > > : > All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}. > : > > : > after reading the text into a string, is there a way to force variable > : > expansion? In a sense, it's like having a heredoc for multiline strings > : > with variable expansion while not having the heredoc embedded in PHP code. > > Question already answered by another helpful soul: use eval(). > > : That's not Eugene from the dojo is it? > > Hmmm? What dojo?

« previous php.general (#163464) next »