- var_dump: documentation ( source)
<?php
trait t
{
private $tt = 'trait';
private function go()
{
return $this->tt;
}
}
class at
{
use t;
public function aa()
{
return $this->go();
}
}
$r = new at;
var_dump($r->aa());