* 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
But that function doesn't need to pass by reference. If you have a
function that has a parameter that is passed by ref, it should always
be a variable that is passed in. You should only be using pass by ref
when the function changes the value and it simply doesn't make sense
to change a "constant".
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 renders the & in the function
declarati
3 matches
Mail list logo