php if class is not defined define it code example Example: php check if class exists if(class_exists('dbinfo')){