Hi! I have a small problem with array and objects:
$a = new A();
$b = new A();
$c = new A();
$d = new A();
$e = new A();
$ar = array($a, $c, $d);
There is a method inside A, which would need the information, that is
that instance ($this) of A a member of array $ar.
I thought, that this could have been tested easily with
if (in_array($this, $ar)) ...
But it is not working.
Is there any easy solution for this?
Thanks,
H.