Originally Posted by E-Oreo
The new operator always returns a reference, so doing an assignment by reference (=&) when creating an object is redundant.
Actually, objects in PHP are always passed and assigned by reference, so using & in any context with objects is redundant.
Got it, I think...sooner rather than later it won't be so chinese to me. I hope.
Devshed is a Developer Shed Property, Owned by Jim Boykin, CEO of Internet Marketing Ninjas
Dev Shed Forums
© 2003 - 2014 by Devshed, LLC. All rights reserved