get_declared_interfaces
(PHP 5)
get_declared_interfaces — Returns an array of all declared interfaces
Description
array get_declared_interfaces
( void
)
Gets the declared interfaces.
Return Values
Returns an array of the names of the declared interfaces in the current script.
Examples
Example #1 get_declared_interfaces() example
<?php
print_r(get_declared_interfaces());
?>
The above example will output something similar to:
Array ( [0] => Traversable [1] => IteratorAggregate [2] => Iterator [3] => ArrayAccess [4] => reflector [5] => RecursiveIterator [6] => SeekableIterator )
See Also
- interface_exists() - Checks if the interface has been defined
- get_declared_classes() - Returns an array with the name of the defined classes
- class_implements() - Return the interfaces which are implemented by the given class
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения, относящиеся к переменным и типам
- Функции работы с классами и объектами
- __autoload
- call_user_method_array
- call_user_method
- class_alias
- class_exists
- get_called_class
- get_class_methods
- get_class_vars
- get_class
- get_declared_classes
- get_declared_interfaces
- get_declared_traits
- get_object_vars
- get_parent_class
- interface_exists
- is_a
- is_subclass_of
- method_exists
- property_exists
- trait_exists
Коментарии
404 Not Found