in reply to Undefined Array Reference

Because the number of elements for each array references are not the same which is why you are getting the error.