Pierre Rineau wrote:
It depends on the parameter type.
If your parameter is a primitive type (int, string, float, bool) or an array, value will be used (this will be a local variable into your function), but if you pass a class (stdClass or any other) then it will be a reference, whether you wrote the & or not.
This is what I was thinking it might be. I've programmed in other languages before but not PHP, and I didn't know how PHP deals with things like this.
Thanks,
andy