Re: [PHP] How to check if an object is empty in PHP5

2006-01-02 Thread Jochem Maas
Mathijs wrote: Hello ppl, How can i check if an Object is empty in PHP5? Becouse empty() doesn't work. Quote: "As of PHP 5, objects with no properties are no longer considered empty.". try: class Test {} $obj = new Test; $arr = (array) $obj; var_dump( empty($obj), empty($arr) ); Thx in ad

[PHP] How to check if an object is empty in PHP5

2006-01-02 Thread Mathijs
Hello ppl, How can i check if an Object is empty in PHP5? Becouse empty() doesn't work. Quote: "As of PHP 5, objects with no properties are no longer considered empty.". Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php