You cannot pass NULL, where a 'reference' was
exptected, it is not legal. Just as any other
constant.
NULL is a constant.
function myfunc(&$p) { ... }
$v = NULL; // passing NULL
myfunc($x);
Mukul Sabharwal
http://www.devhome.org
----- Original Message -----
From: "Mirek Novak" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 12:06 PM
Subject: [PHP] prob. with function parameter with "&"
> Hi everybody,
>
> I have defined function
>
> function func ($var,$val,&$struct){
> // do something
> }
>
> if I call this function following way
>
> func('a','b',NULL);
>
=====
Mukul Sabharwal ([EMAIL PROTECTED])
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php