Possible Duplicate:
How to Check if an Object is empty in PHP
I have this empty object
Array (
[cart_items] => stdClass Object
(
)
)
When I use empty()/is_null()
, it doesn't work. When I use sizeof($object)
, it returns one.
How can I check it?