Re: Expand/parse variables in file
| From: | CC Zona | Date: | Mon, 25 Jun 2001 22:13:30 +0000 |
| Subject: | Re: Expand/parse variables in file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55167@lists.php.net to get a copy of this message | ||
In article <E15EWUS-0000Oc-00@walross.realnetworks.de>,
GEBiernat@real.com ("Gunther E. Biernat") wrote:
> I'm trying to read a plain text file where I embedded some variables. E.g.
>
> abc $a def
>
> Sucking this file in a string and setting $a to "whatever" results in "abc $a
> def" rather than "abc whatever def".
Is the string in your plain text file enclosed in single-quotes by any
chance?
(Just a wild guess. It's easier if you show actual code/text.)
--
CC