- var_dump: documentation ( source)
- get_object_vars: documentation ( source)
<?php
class Bar
{
protected $meh = true;
}
class Foo extends Bar
{
public $foo;
public function __construct()
{
var_dump(get_object_vars($this));
}
}
new Foo;