print "</br>"; print property_exists("Emailer", "test"); print "</br>"; /*---------- Checking the Type of a class ----------*/ $cc = new ChildClass(); if (is_a($cc, "ChildClass")) { print "It's a ChildClass Type Object. </br>"; } if (is_a($cc, "ParentClass")) { print "It's also a ParentClass Type Object. </br>"; } /*---------- Finding out the Class Name ----------*/ print get_class($cc); print "</br>"; $cc2 = new ChildClass(); print $cc2->getClass(); print "</br>"; /*---------- Exception Handling ----------*/ /*$db = new DB(); if(!$db->connect()) print("Failed to connect to PostgreSQL Server"); print("</br>");*/ $dbexc = new DB(); try { $dbexc->connect(); } catch (Exception $e) { print "<pre>"; var_dump($e); print "</pre>"; } print "</br>"; $db2 = new DAL();