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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php