Re: pass by reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Specify it only at function definition:
myFunction( &$var1, &$var2 ) {
    // ...
}
$var = myFunction( $var1, $var2 ) ;

Ignatius
_________________________
----- Original Message ----- 
From: "Jeremy Shovan" <jeremy@image2020.com>
To: <php-db@lists.php.net>
Sent: Thursday, October 09, 2003 9:54 PM
Subject:  pass by reference


> How do you pass by reference? I tried
> $var = myFunction(&$var1, &$var2);
> but it gave me a warning saying that pass by reference is depreciated
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux