PHP 8.4.2 Released!

The ReflectionObject class

(PHP 5, PHP 7, PHP 8)

Introduzione

The ReflectionObject class reports information about an object.

Sommario della classe

class ReflectionObject extends ReflectionClass {
/* Costanti ereditate */
/* Proprietà ereditate */
public string $name;
/* Metodi */
public __construct(object $object)
/* Metodi ereditati */
public static ReflectionClass::export(mixed $argument, bool $return = false): string
public ReflectionClass::getAttributes(?string $name = null, int $flags = 0): array
}

Log delle modifiche

Versione Descrizione
8.0.0 ReflectionObject::export() was removed.

Indice dei contenuti

add a note

User Contributed Notes 1 note

up
6
marcel dot nolte at noltecomputer dot de
15 years ago
To simply enlist all methods and properties of an object simply write:

<?php ReflectionObject::export($yourObject); ?>

,which will cause an var_export-like output.
To Top