interface_exists
pestphp/pest
Supported Versions: PHP 5 >= 5.0.2, PHP 7, PHP 8
Checks if the interface has been defined
<?php interface_exists
(
string $interface
,
bool $autoload
=
true
):
bool