How check memory location of variable in php?
Thanks
To test if one variable is a reference to another you can do the following:
function is_ref_to(&$a, &$b) { $t = $a; if($r=($b===($a=1))){ $r = ($b===($a=0)); } $a = $t; return $r; }