which function is used to check whether class exist or not in php code example Example: php check if class exists if(class_exists('dbinfo')){