PHP 8.3.4 Released!

ReflectionExtension::getClassNames

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getClassNamesGets class names

Beschreibung

public ReflectionExtension::getClassNames(): array

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

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

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

Beispiele

Beispiel #1 ReflectionExtension::getClassNames() example

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

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

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top