You can use Reflection class instead:
<?php
$r = new ReflectionClass($class);
foreach($r->getInterfaces() as $in)
{
$in->getName();
}
![]() | class_implements说明array class_implements ( mixed class [, bool autoload] )This function returns an array with the names of the interfaces that the given class and its parents implement. 参数
范例
![]()
25-Jan-2006 01:51
You can use Reflection class instead:
trollll23 at yahoo dot com
26-Oct-2005 03:57
Luckily, it prints out superinterfaces as well in reverse order so iterative searching works fine:
ludvig dot ericson at gmail dot nospam dot com
02-Aug-2005 03:41
Hint: | ![]() |