Re: Get a variable from a variable.

From: Date: Thu, 15 Feb 2001 13:23:33 +0000
Subject: Re: Get a variable from a variable.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39896@lists.php.net to get a copy of this message
On Thu, Feb 15, 2001 at 03:57:58AM -0600, Fabian Fabela wrote: > $a="myarray"; > myFunction($myarray); > if I try myArray($a); the string "myarray" is sent, and I > want to send $myarray that is the text in $a. You were pretty close. I think you want to try this: myFunction($$a); It is a variable variable. http://www.php.net/manual/en/language.variables.variable.php -- Jason Stechschulte jpstech@unoh.edu -- Just don't create a file called -rf. :-) -- Larry Wall in <11393@jpl-devvax.JPL.NASA.GOV>

« previous php.general (#39896) next »