$value){ $this->$index = $value; } } public function __get($index){ return (isset($this->$index) && $this->$index != '') ? urldecode($this->$index) : null; } } ?>