Re: [PHP] Referencing function return value

2002-07-07 Thread Miguel Cruz
On Sun, 7 Jul 2002, Anas Mughal wrote: > I have a general question about referencing... > > Would it be safe to reference a function return value? Sure, unless the function returned a reference itself, in which case you have to continue keeping track of the validity of that reference (i.e., if

[PHP] Referencing function return value

2002-07-07 Thread Anas Mughal
I have a general question about referencing... Would it be safe to reference a function return value? My main concern is that once the function goes out of scope, is that variable cleaned up or would it stay around because there is a new reference to it. I am coming from the C++ and Java world