leg cramps bad charlie horses,how do u/stop cramps?

Painful leg cramps how do you stop them ?