It is originally done through $obj2 = $obj, so it should be equal. If you want to determine whether it is a reference, shouldn't you use $obj2 = new Demo();?
何、夕2019-01-30 15:59:34
0
1
1275
It is originally done through $obj2 = $obj, so it should be equal. If you want to determine whether it is a reference to the current object, shouldn't you use $obj2 = new Demo(); and then determine whether it is equal?
$obj2=new Demo(); There is no difference between $obj2 =$obj;. $obj = new Demo(); has been instantiated above. You just wrote one more line of code