ReflectionExtension::getClasses

(PHP 5, PHP 7)
Gets classes
public array ReflectionExtension::getClasses ( void )

Gets a list of classes from an extension.

Returns:

An array of ReflectionClass objects, one for each class within the extension. If no classes are defined, an empty array is returned.

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

The above example will output something similar to:

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

ReflectionExtension::getClassNames() -

doc_php
2016-02-24 16:13:29
Comments
Leave a Comment

Please login to continue.