Stumped
Wednesday, April 25th, 2007I can’t quite understand this.
In this day and age where pass by reference is the new black (ie, .net only passes by reference, java only passes base types by value), php has decided to be the black sheep (or not, depending on your point of view).
Using php 5, objects are passed by reference, always, which is logical, easier to manage and saves on stack space. OTOH arrays are passed by … value (unless forced with a &). Go figure.
Still trying to come to terms with this particular oddity.
Powered by ScribeFire.