interface_exists
interface_exists
(PHP 5 >= 5.0.2, PHP 7)
interface_exists — Checks if the interface has been defined
Description
bool interface_exists ( string $interface_name [, bool $autoload = true ] )
Checks if the given interface has been defined.
Parameters
-
interface_name
-
The interface name
-
autoload
-
Whether to call 登录查看完整内容