[nycphp-talk] Why is pass-by-reference deprecated?
Cliff Hirsch
cliff at pinestream.com
Mon Nov 19 16:21:21 EST 2007
> Hello,
>
> Sorry to hijack, but I started thinking about something I read
> for optimization of php.
>
> They stated, if you know your not going to make changes
> to a variable, to send it to a function as reference, as to NOT
> make a copy of it...
>
Going back to some very, very old threads on here, I though that copies were
only made if the variable was changed. If the variable is not changed, I
believe php is smart enough to reference, not copy, the variable.
Clif
More information about the talk
mailing list