function workAnswers() { $basic_score = new BasicScore(); $ans = array(); foreach ($this->ss->getExaminees() as $examinee) { try { $answers_df = $basic_score->getPapersByExamineeId($examinee->id); $ans[$examinee->id] = $this->changeAns($answers_df); } catch (Exception $e) { echo $e; } } return $ans; }