Reflection ReflectionExtension::getFunctions

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getFunctions — 확장 함수 가져오기


설명

public ReflectionExtension::getFunctions(): array

확장에서 정의된 함수를 가져옵니다.


매개변수

이 함수에는 매개변수가 없습니다.


반환 값

키가 함수 이름인 확장에 정의된 각 함수에 대한 ReflectionFunction 객체의 연관 배열입니다. 함수가 정의되지 않은 경우 빈 배열이 반환됩니다.<


Examples

예제 #1 ReflectionExtension::getFunctions() 예제

                  
<?php
$dom = new ReflectionExtension('SimpleXML');

print_r($dom->getFunctions());
?>
                  
                

위의 예는 다음과 유사한 결과를 출력합니다.

Array
(
    [simplexml_load_file] => ReflectionFunction Object
        (
            [name] => simplexml_load_file
        )

    [simplexml_load_string] => ReflectionFunction Object
        (
            [name] => simplexml_load_string
        )

    [simplexml_import_dom] => ReflectionFunction Object
        (
            [name] => simplexml_import_dom
        )

)
                

기타