@ 2014-08-25T13:38:37Z

<?php $xml = new SimpleXMLElement('<tag></tag>'); echo 'An empty SimpleXMLElement is '; var_export((bool) $xml); echo "

"; $xml = new SimpleXMLElement('<tag>data</tag>'); echo 'A SimpleXMLElement with data is '; var_export((bool) $xml); echo "

"; $obj = new stdClass(); echo 'An empty stdClass is '; var_export((bool) $obj);