This function returns an unique identifier for the object. This id can be used as a hash key for storing objects or for identifying an object.
Returns a string that is unique for each object and is always the same for the same object.
$id = spl_object_hash($object);
$storage[$id] = $object;