- var_dump: documentation ( source)
<?php
namespace crm;
class et{
protected $table = "b";
public $field = "d";
private $x = "private!";
public function dump(){
$get_object_vars = 'get_object_vars';
var_dump( $get_object_vars($this) );
}
}
$et = new et();
$et->dump();