Prepare($this->$var, $convert); } } public function __get($data) { return $this->Prepare(parent::__get($data)); } private function Prepare($txt, $convert = true) { if (strlen($txt) > 0) { $txt = trim($txt); } if ($convert) { $txt = @iconv('UTF-8', 'ISO-8859-2//TRANSLIT', $txt); } return $txt; } } ?>