Re: [PHP] Problem with reference variables.

2002-11-07 Thread Jason Wong
On Friday 08 November 2002 02:35, R B wrote: > And when i call the myTestFunction function, i have to put & in the > variable? > > ex: > function myTestFunction(&$x) { > funtion stuff here > } > > myTestFunction(&$x) No. > or > > myTestFunction($x) ? Yes. -- Jason Wong -> Gremlin

Re: [PHP] Problem with reference variables.

2002-11-07 Thread R B
OTECTED]> Subject: Re: [PHP] Problem with reference variables. Date: Thu, 07 Nov 2002 19:09:06 +0100 change the function declaration to function myTestFunction(&$x) { funtion stuff here } R B wrote: Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini f

Re: [PHP] Problem with reference variables.

2002-11-07 Thread Marek Kilimajer
change the function declaration to function myTestFunction(&$x) { funtion stuff here } R B wrote: Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this warning: Warning: Call-time pass-by-reference has been deprecated - argument pass

[PHP] Problem with reference variables.

2002-11-07 Thread R B
Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this warning: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If