Friday, November 20, 2009

How to define a class method

class Person{
function say_hi(){
echo "Say hi from inside a class";
}
}

$methods=get_class_methods('Person');

foreach($methods as $method){
echo $method . "";
}
?>

No comments:

Post a Comment

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