On Mon, 25 Jun 2001 23:09, Gunther E. Biernat wrote:
> All,
>
> This ought to be simple, but I can't crack it...
>
> 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". Where's the difference to
> directly doing the following:
>
> $a = "whatever";
> $b = "abc $a def";
> echo $b;
>
> which results in "abc whatever def" ???
>
> What am I missing?
>
> Thanks in advance.
>
>
>
> mit freundlichen Gruessen / yours sincerely
In a word, eval() :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I won't finish in fifth place," Tom held forth.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]