I was wondering how to check if a class had already been declared. In my CMS I use a class to display my site survey, however you can visit the script where the class is located to view ALL the polls. But when I visit this page it says the class has already been declared so I was wondering if I could get something to figure out if a class has already been declared like....

if(class_declared('class_name')){
$class->object();
}else{
include(class_file.php);
$class->object();
}
    Write a Reply...