A child was rescued after he fell in the gap between the train and the platform when exiting the car.