Re: Variables within a string

From: Date: Tue, 12 Mar 2002 01:39:16 +0000
Subject: Re: Variables within a string
Groups: php.general 
Request: Send a blank email to php-general+get-88131@lists.php.net to get a copy of this message
Oh, so that's how you deal with indexed variables inside of double quotes... I can't believe that has eluded me for so long... ------------------------------------------------------------------------------- From: Jason Wong <php-general@gremlins.com.hk> To: <php-general@lists.php.net> Date: Mon, 11 Mar 2002 12:09:15 +0800 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP] Variables within a string On Monday 11 March 2002 11:10, Chris Cocuzzo wrote: > I would imagine the problem has something to do with those escaped quote > marks, but in any case, you could probably get around it by doing this: > > $foo = "Entry for " . $HTTP_POST_VARS["name"]; > > some correct me if I'm wrong Or simply: $foo = "Entry for for $HTTP_POST_VARS[name]"; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* If you don't have a nasty obituary you probably didn't matter. -- Freeman Dyson */

« previous php.general (#88131) next »