getExistingSurveys(); foreach ($surveyIDTitles as $id => $title) { $survey = new Survey($id, $title); array_push($surveys, $survey); } return $surveys; } } ?>