www.php.net/reflection
Código php:
Ver originalclass A
{
private $atrib1;
private $atrib2;
}
$reflectionClass = new ReflectionClass('A');
foreach ($reflectionClass->getDefaultProperties() as $property => $value) {
echo $property . ' => ' . $value . "\n";
}
¿Puede ser?
...