title: How to check if stdClass object is empty or not in php?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9412126/how-to-check-if-an-object-is-empty-in-php">How to Check if an Object is empty in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I have this empty object </p>
  
  <pre><code>Array (
      [cart_items] =&gt; stdClass Object
          (
          )
  )
  </code></pre>
  
  <p>When I use <code>empty()/is_null()</code> , it doesn't work. When I use <code>sizeof($object)</code>, it returns one. </p>
  
  <p>How can I check it?</p>