IT/php

php get_declared_interfaces — 선언된 모든 인터페이스의 배열을 반환

조원태 2017. 1. 13. 21:59
반응형

get_declared_interfaces — 선언된 모든 인터페이스의 배열을 반환


설명 :


array get_declared_interfaces ( void )

선언된 인터페이스를 얻습니다.


반환값 :

현재 스크립트에서 선언된 인터페이스명의 배열을 반환합니다.



Example #1 get_declared_interfaces() 예제


<?php

print_r(get_declared_interfaces());

?>

위 예제의 출력 예시:


Array

(

    [0] => Traversable

    [1] => IteratorAggregate

    [2] => Iterator

    [3] => ArrayAccess

    [4] => reflector

    [5] => RecursiveIterator

    [6] => SeekableIterator

)


2017/01/13 - [IT/php] - get_declared_classes — 선언된 클래스명을 배열로 반환

2017/01/12 - [IT/php] - php property_exists — 객체나 클래스가 프로퍼티를 가졌는지 확인

2017/01/12 - [IT/php] - php trait_exists — 형질이 존재하는지 검사한다.

2017/01/12 - [IT/php] - php is_subclass_of — 이 클래스가 부모 클래스의 자식인지 확인

2017/01/11 - [IT/php] - php is_a — 객체가 이 클래스나 부모 클래스 중 하나인지 확인

2017/01/11 - [IT/php] - php is_subclass_of — 이 클래스가 부모 클래스의 자식인지 확인

2017/01/11 - [IT/php] - php get_class_vars — 클래스의 기본 프로퍼티를 얻습니다


반응형