in_array on objects with circular references
Sección: Programación
Creado: 17-11-24 (Actualizado: 23-02-22)
I'm building an array of objects. I need this array to only contain once instance of a given object, having multiple references to the same object should throw an exception. I'm using the following
https://stackoverflow.com/questions/8460011/in-array-on-objects-with-circular-references