get_declared_interfaces

Returns an array of all declared interfaces

&reftitle.description; `array` `get_declared_interfaces`

Gets the declared interfaces.

&reftitle.returnvalues;

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

&reftitle.examples;

### `get_declared_interfaces` example

    <?php
    print_r(get_declared_interfaces());
    ?>

&example.outputs.similar;

    Array
    (
        [0] => Traversable
        [1] => IteratorAggregate
        [2] => Iterator
        [3] => ArrayAccess
        [4] => reflector
        [5] => RecursiveIterator
        [6] => SeekableIterator
    )

&reftitle.seealso;

- `interface_exists`
- `get_declared_classes`
- `class_implements`