I'm learning about spl_object_hash()
and don't quite understand what's behind the scene in this case:
$obj = new stdClass;
$id1 = spl_object_hash($obj);
$id2 = spl_object_hash(new stdClass);
echo $id1.'<br>'.$id2;
Q1. Why $id1 !== $id2
?
In the reference:
When an object is destroyed, its hash may be reused for other objects.
Q.2 Is there something relates to that statement? Or I missed something else?