There is a sphincter valve at the top of your stomach where it connects to the esophagus. Normally unless swallowing (or in case of dysfunction , which can cause acid reflux for example) it is closed and prevents food from emerging even when hanging upside down, for example.
Latest Answers