- var_dump: documentation ( source)
<?php
class h extends stdClass {
public $data = array();
function __set($name, $val) {
$this->data[$name] = $val;
}
function __debugInfo() {
return $this->data;
}
}
$cl = new h();
$id = "373556941768884244";
$cl->$id = 'hallo';
var_dump($cl);