how to access current class object in PHP code example Example: php get object class get_class($object);