Re: [PHP] Re: Parsing variables within string variables

2006-04-08 Thread David Clough
Dear Paul, this is exactly the solution I needed, and works as described! Many thanks for thinking through this with me. Yours, David. On 8 Apr 2006, at 00:05, Paul Novitski wrote: At 02:41 PM 4/7/2006, David Clough wrote: I have to parse the string 'Hello $foo' as it

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread David Clough
Dear Paul, this is exactly the problem: the string including the dollar sign comes from the database. The problem I have is that the echo statement parses the $bar reference, but not the $foo reference within it. So echo $bar generates Hello $foo which is better than $bar but d

[PHP] Re: Parsing variables within string variables

2006-04-07 Thread David Clough
abase, not to evaluate variables. If anyone else can provide the silver bullet, I will be very grateful. David. In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (David Clough) wrote: > I've been bashing my head against the wall on this, and would be glad of > he