Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

get_declared_interfaces

Description

The get_declared_interfaces of Class / Object for PHP returns an array of all declared interfaces.

Syntax

get_declared_interfaces ( void ) : array

Return

Returns an array of the names of the declared interfaces in the current script.

Examples

1

<?

$return = get_declared_interfaces();

print_r($return);

?>
Array
(
    [0] => Traversable
    [1] => IteratorAggregate
    [2] => Iterator
    [3] => Serializable
    [4] => ArrayAccess
    [5] => Countable
    [6] => Stringable
    [7] => Throwable
    [8] => UnitEnum
    [9] => BackedEnum
    [10] => DateTimeInterface
    [11] => JsonSerializable
    [12] => RecursiveIterator
    [13] => OuterIterator
    [14] => SeekableIterator
    [15] => SplObserver
    [16] => SplSubject
    [17] => Random\Engine
    [18] => Random\CryptoSafeEngine
    [19] => Reflector
    [20] => SessionHandlerInterface
    [21] => SessionIdInterface
    [22] => SessionUpdateTimestampHandlerInterface
    [23] => DOMParentNode
    [24] => DOMChildNode
)
HomeMenu