Hi everyone,
Is there a dereferencing operator in PHP to refer to the actual object, rather than the reference? I know about the ->, but the object being refered to isn't a class instance, so that won't work. Basically, I'm looking for the equivalent of the C++ * operator to perform an action on the actual object, not the reference.
If not, maybe someone could suggest a way to solve this problem. I have a reference parameter to a mysql resource. I'd like to run the mysql_free_result function on the resource itself, not the reference. Like this,
function foo(& $results) {
// some code
mysql_free_result($results) //this needs to be the mysql result itself
}
Thanks,
Matt