RE: [PHP] forcing variable expansion
| From: | Jay Blanchard | Date: | Fri, 19 Sep 2003 20:50:40 +0000 |
| Subject: | RE: [PHP] forcing variable expansion | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163221@lists.php.net to get a copy of this message | ||
[snip]
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.
[/snip]
http://us3.php.net/eval maybe?