The ArrayObject
class allows objects to work as arrays. When I check if an ArrayObject
is empty, though, the result is always false
echo empty(new ArrayObject()); // returns false
Wouldn't it be more coherent with the behavior of an empty array []
if it returned true
?