phpday 2027 - Call for Papers

ReflectionExtension::getClassNames

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getClassNames — Gets class names

Descrizione

public function ReflectionExtension::getClassNames(): array

Gets a listing of class names as defined in the extension.

Elenco dei parametri

Questa funzione non ha parametri.

Valori restituiti

An array of class names, as defined in the extension. If no classes are defined, an empty array is returned.

Esempi

Example #1 ReflectionExtension::getClassNames() example

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

Il precedente esempio visualizzerà qualcosa di simile a:

array(1) {
  [0]=>
  string(9) "XMLWriter"
}

Vedere anche:

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top