Re: sending a variable variables to a function

From: Date: Tue, 08 Aug 2006 20:07:32 +0000
Subject: Re: sending a variable variables to a function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240336@lists.php.net to get a copy of this message
On Tue, August 8, 2006 7:25 am, Ross wrote: > I want to send variable variables to a function but I cannot seem to > get the > syntax correct. This is what I have so far... > > > function my_function ($$moule_no) { For sure, you don't want $$ in the arglist. You probably want $module_varname, I guess. Then you could use: global $$module_varname; echo $$module_varname; 99% of the time, if you think you want $$, what you SHOULD be using is an array. I'm betting you're not in the 1% category with this module_no stuff... Re-think it. :-) -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#240336) next »