* Thus wrote Daevid Vincent:
> Yeah, I get what references are. The point is that when it was on the user
> to decide, they could do it. Now that PHP5 makes you put the & in the
> function declaration instead of the passing parameter, you don't know what
> the user is going to send. Therefore it re
ince
> passing add(&$x, &$y); is now invalid], it makes my function add basically
> useless.
>
>
>
>
> > -----Original Message-----
> > From: Red Wingate [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 16, 2004 5:35 PM
> > To: [EMAIL PROTECTED]
&
gt; To: [EMAIL PROTECTED]
> Subject: [PHP] Re: PHP5 and pass by reference bug.
>
> Maybe you recheck the dokumentation on what exactly
> referenzes are. Do
> you expect the function to alter the string "something here"
> and every-
> time you later print the string with
Maybe you recheck the dokumentation on what exactly referenzes are. Do
you expect the function to alter the string "something here" and every-
time you later print the string within your script you get the altered one?
ONLY variables can be passed by referenze !
-- red
Daevid Vincent wrote:
So,
Maybe you recheck the dokumentation on what exactly referenzes are. Do
you expect the function to alter the string "something here" and every-
time you later print the string within your script you get the altered one?
ONLY variables can be passed by referenze !
-- red
Daevid Vincent wrote:
So,
5 matches
Mail list logo