Re: interpreting variables containing in another variable

From: Date: Wed, 20 Nov 2002 18:20:50 +0000
Subject: Re: interpreting variables containing in another variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125287@lists.php.net to get a copy of this message
Not sure what your saying, but like: $email_body = $name . ", " . $address . ", " . $phone . ", " . $blah; ? On Wed, 2002-11-20 at 13:15, ROBERT MCPEAK wrote: > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#125287) next »