- var_dump: documentation ( source)
<?php
class billing{
private $cache=array();
public function resetCache(){
$this->cache=array();
return $this;
}
}
class billing_info extends billing{
public function getPassword()
{
return $this->cache;
}
}
$o=new billing_info;
var_dump($o->resetCache());