function dump($obj, $name = null) { return $this->writemsg(h($name !== null ? $name : gettype($obj)), '<pre>' . h(var_export($obj, 1)) . '</pre>'); }