How to Check if an Object is empty in PHP
<p>How to find if an object is empty of not in PHP.</p>

<p>Following is the code in which $obj is holding xml data. How to check if it's empty or not?</p>

<p><code>$obj = simplexml_load_file($url)</code></p>
