spacing chanages
change one foreach to for
$section => $kmdata_course['offerings'][$i]['sections'][$j]
add debug statements