The cure I’ve always used is to suck water through a restricted straw. I take a plastic straw, pinch it in the middle with a paperclip, and drink a small glass of water through it.
The science is still out on what causes hiccups, why we get them, and how exactly to stop them.