- var_dump: documentation ( source)
<?php
class MyTable {
private $name;
private $id;
public function __set($p, $v) {
# $this->{$p} = $v;
return $this->$p();
}
private function name() {
return 'x';
}
}
$oMyTable = new MyTable();
$o = $oMyTable->name = 'Felipe';
var_dump($o);
?>