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 advanced.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php