note 58152 added to function.class-implements
| From: | trollll23 at yahoo dot com | Date: | Tue, 25 Oct 2005 19:57:08 +0000 |
| Subject: | note 58152 added to function.class-implements | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97595@lists.php.net to get a copy of this message | ||
Luckily, it prints out superinterfaces as well in reverse order so iterative searching works fine:
<?php
interface InterfaceA { }
interface InterfaceB extends InterfaceA { }
class MyClass implements InterfaceB { }
print_r(class_implements(new MyClass()));
?>
prints out:
Array
(
[InterfaceB] => InterfaceB
[InterfaceA] => InterfaceA
)
----
Manual Page -- http://www.php.net/manual/en/function.class-implements.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58152
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58152&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58152&report=yes
Search -- http://master.php.net/manage/user-notes.php