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
The function needs to be declared without "variable variable"
Du like this instead:
function my_function($module) {
// do something with $module
}
And then you call the function with the variable variable:
my_function($$module_no);
/Peter
-Original Message-
From: Ross [mailto:
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) {
>
> // do something with $$module_no
>
>
>
> }
>
>
> my_function ($module1)
> my_function ($module2)
> my_fu
3 matches
Mail list logo