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
ss [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 7:26 PM
To: php-general@lists.php.net
Subject: [PHP] sending a variable variables to a function
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 m
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
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_function ($module3)
--
PHP General Mailing
4 matches
Mail list logo