interpreting variables containing in another variable

From: Date: Wed, 20 Nov 2002 18:15:11 +0000
Subject: interpreting variables containing in another variable
Groups: php.general 
Request: Send a blank email to php-general+get-125286@lists.php.net to get a copy of this message
I've got a variable - $email_body, that contain's other variables. For example, echo "$email_body," might look like this: $name, $address, $phone, $blah I want those variables to interpreted with corresponding values set earlier in the script. So, in effect, where name=bob, address=101 east main, phone=555-5555, and blah=foo, echo "$email_body" would look like this: bob, 101 east main, 555-5555, foo Any suggestions? Thanks in advance. -Bob

« previous php.general (#125286) next »