php check if class is found code example Example: php check if class exists if(class_exists('dbinfo')){