//The two variables differ in content ... They can't be the same if(in_array($key, $obj2)) {
return false;
}
//The arrays point to the same data if changes are reflected in $var2 $data = uniqid("is_ref_data_", true); $var1->$key =& $data; //There seems to be a modification ... if(isset($var2->$key)) {
if($var2[$key] === $data) { $same = true;
}
}