He encamped near Joppa, but the people of the city shut him out because Apollonius had a garrison in Joppa. When they attacked it,