- var_dump: documentation ( source)
- end: documentation ( source)
- explode: documentation ( source)
- key: documentation ( source)
<?php
class Foo {
public $bar = 'barValue';
protected $baz = 'bazValue';
private $tab = 'tabValue';
}
$data = (array) new Foo();
var_dump($data);
$key = key(start($data));
echo end(explode('\0', $key));