".$e->getMessage()."
"; } } else { try { // remove break lines if any and spaces $department = str_replace("\r\n","",''); $department= str_replace("\n","",$department); $department= str_replace(" ","",$department); $array = array(trim($department)); $courses = get_multiple_courses_by_department($array); } catch(ErrorException $e) { echo "

".$e->getMessage()."
"; } } ?>