To simply enlist all methods and properties of an object simply write:
<?php ReflectionObject::export($yourObject); ?>
,which will cause an var_export-like output.(PHP 5, PHP 7, PHP 8)
ReflectionObject クラスは オブジェクトについての情報を報告します。
$object, callable $initializer, int $options = 0): void| バージョン | 説明 |
|---|---|
| 8.0.0 | ReflectionObject::export() は、削除されました。 |
To simply enlist all methods and properties of an object simply write:
<?php ReflectionObject::export($yourObject); ?>
,which will cause an var_export-like output.