update page now

Voting

: zero plus two?
(Example: nine)

The Note You're Voting On

dhairya dot coder at gmail dot com
9 years ago
//checks that whether class Fruit implements interface apple or not 

interface Apple {
    
    function taste();
}

class Fruit implements Apple {
    
    function taste() {
        echo "Seet";
    }
}

$obj=new ReflectionClass('Fruit');
var_dump($obj->implementsInterface('Apple'));  //Here it will checks that whether class Fruit implements interface apple or not

<< Back to user notes page

To Top