<?php class A { protected $i = 0; public function __toString() { $this->i++; return "$this->i"; } } $a = new A; $b = [$a]; var_dump(array_intersect($b, $b));
You have javascript disabled. You will not be able to edit any code.