- var_dump: documentation ( source)
- get_class_vars: documentation ( source)
<?php
class test {
public $hello = 'world';
public function test() {
$this->hello = 'bubblerubble';
echo var_dump( get_class_vars( get_class() ) );
}
}