I'm not sure about SplObjectStorage, but I think spl_object_hash is definitely the right choice. It generates a hash value based on the object's properties, ensuring uniqueness.
I agree with Veronika. SplObjectStorage is specifically designed for storing objects only once, and spl_object_hash can be used to get a unique identifier for an object.
Letha
6 days agoAnastacia
11 days agoGeraldo
13 days agoVeronika
14 days ago