NYCPHP Meetup

NYPHP.org

[nycphp-talk] Passing Arrays

Robert Redcay rob at nyc.yamaha.com
Tue Oct 28 13:13:35 EST 2003



David Mintz wrote:

>Is it not so that PHP -- I'm gonna try to say this intelligibly --
>doesn't actually copy data that is passed-by-value unless and until you
>change it inside the function? So pass-by-reference isn't necessary unless
>it's what you really mean. Stated differently, passing by reference just
>for the sake of saving memory doesn't save memory. True?
>  
>
David,
This is the impression that I was under as well.
What I'm worried about is passing objects. Are they not copied until 
they are changed inside the function?

Thanks,
Rob Redcay




More information about the talk mailing list