downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ReflectionExtension::getINIEntries> <ReflectionExtension::getDependencies
[edit] Last updated: Fri, 25 May 2012

view this page in

ReflectionExtension::getFunctions

(PHP 5)

ReflectionExtension::getFunctions拡張モジュールの関数を取得する

説明

public array ReflectionExtension::getFunctions ( void )

拡張モジュールで定義されている関数を取得します。

パラメータ

この関数にはパラメータはありません。

返り値

ReflectionFunction オブジェクトの連想配列を返します。 拡張モジュール内で定義されている関数名がキーとなります。 関数が定義されていない場合は空の配列を返します。

例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
        )

)

参考



add a note add a note User Contributed Notes ReflectionExtension::getFunctions
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites