I wrote a class like this :
class config {
private $conf;
public function __call( $confName, $args ){
if ( 0 == count($args) && isset($this->conf[$confName]) ){
return $this->conf[$confName];
}
else {
$this->conf[$confName] = $args[0];
return $this;
}
}
}
and $conf = new config();
but I wanna get the suggest list when I input $conf->,
is there any ideal or it's impossible to do that ?