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