sday, October 09, 2003 9:54 PM
Subject: [PHP-DB] 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
> 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
>
Call time pass by refrence is depreciated you should read the manual to see
how it should be done.
http://www.php.net/manual/en/language.references
> 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
function myFunction( &$var1, &$var2 ) {
}
You now have to do it in the function definition, not the function call.
Chris
--
PHP Database Mailing
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