note 118816 added to reflectionclass.implementsinterface
| From: | dhairya dot coder at gmail dot com | Date: | Thu, 11 Feb 2016 03:48:09 +0000 |
| Subject: | note 118816 added to reflectionclass.implementsinterface | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204914@lists.php.net to get a copy of this message | ||
//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
----
Server IP: 72.52.91.14
Probable Submitter: 164.100.1.207
----
Manual Page -- http://php.net/manual/en/reflectionclass.implementsinterface.php
Edit -- https://master.php.net/note/edit/118816
Del: integrated -- https://master.php.net/note/delete/118816/integrated
Del: useless -- https://master.php.net/note/delete/118816/useless
Del: bad code -- https://master.php.net/note/delete/118816/bad+code
Del: spam -- https://master.php.net/note/delete/118816/spam
Del: non-english -- https://master.php.net/note/delete/118816/non-english
Del: in docs -- https://master.php.net/note/delete/118816/in+docs
Del: other reasons-- https://master.php.net/note/delete/118816
Reject -- https://master.php.net/note/reject/118816
Search -- https://master.php.net/manage/user-notes.php