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

search for in the

ReflectionExtension::getClassNames> <ReflectionExtension::export
[edit] Last updated: Fri, 25 May 2012

view this page in

ReflectionExtension::getClasses

(PHP 5)

ReflectionExtension::getClassesクラスを取得する

説明

public array ReflectionExtension::getClasses ( void )

拡張モジュールのクラス一覧を取得します。

パラメータ

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

返り値

ReflectionClass オブジェクトの配列を返します。 各要素が、拡張モジュール内のクラスを表します。 クラスが定義されていない場合は空の配列を返します。

例1 ReflectionExtension::getClasses() の例

<?php
$ext 
= new ReflectionExtension('XMLWriter');
var_dump($ext->getClasses());
?>

上の例の出力は、 たとえば以下のようになります。

array(1) {
  ["XMLWriter"]=>
  &object(ReflectionClass)#2 (1) {
    ["name"]=>
    string(9) "XMLWriter"
  }
}

参考



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

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