php check if class already declared code example Example: php check if class exists if(class_exists('dbinfo')){