News for hackers. Stuff that matters.
Re:PHP: The Right Way by xd on Sunday July 08, 2012 @11:56AM (#4214853)
I use references for passing around large arrays of data for instance, rather than having copies made all over the place (class instances are passed by reference no matter what you do).
Re:PHP: The Right Way by ufo on Sunday July 08, 2012 @05:21PM (#4215763)
What I meant is that people usually pass things via a pointer (that needs to be explicitly dereferrenced) or via const references (where there is no mutation to worry about). Mutable references are rarer and usually they are function arguments and are relatively "obvious"