/** * Retorna os extras da pessoa * @param $extra String * @return array */ public function getExtras() { if ($this->extras != null) { $extras = json_decode(Plib::unicode_to_utf8($this->extras), true); // var_dump($extras); if ($extras == null) { $extras = json_decode($this->extras, true); } // var_dump($extras); if ($extras == null) { $extras = json_decode(stripslashes($this->extras), true); } // var_dump($extras); // array_walk($extras,array('PLib','unicode_to_utf8')); return $extras; } }