Friday, November 20, 2009

Chek if a class name is decleared or not

class Person{

}

if(class_exists("Person")){
echo "The class defined here";
}else{
echo "The class not defined here";
}

?>

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off