Does in_array() do object comparison where it checks that all attributes are the same? What if $obj1 === $obj2, will it just do pointer comparison
in_array()
$obj1 === $obj2
Objects are always references in PHP 5+ and can only be copied (thus creating a new object) by using clone.
clone
That means you should be able to use in_array().