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

search for in the

ReflectionExtension::getClassNames> <ReflectionExtension::export
[edit] Last updated: Tue, 21 May 2013

view this page in

ReflectionExtension::getClasses

(PHP 5)

ReflectionExtension::getClassesGets classes

Descrizione

public array ReflectionExtension::getClasses ( void )

Gets a list of classes from an extension.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

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

Esempi

Example #1 ReflectionExtension::getClasses() example

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

Il precedente esempio visualizzerĂ  qualcosa simile a:

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

Vedere anche:



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

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