American forces entered Philadelphia as the British withdrew.