> >   foo ($hash = array('var1'=>'value', 'var2'=>'value'));
> >should work.

> You don't need the $hash in that function call unless you need to use
> it later on in your main program, so you can just say:
> 
>         foo (array('var1'=>'value', 'var2'=>'value'));

that won't work (Lux's complaint) when foo() is declared function foo
(&$hash)
cause PHP cannot extract the reference of an array unbound to any PHP
variable.

There is only one exception, which is for objects created with new.

-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to