This is basically false. For more information see: Urban Legends at About.com or Snopes.com
HOW TO SURVIVE A HEART ATTACK WHEN ALONE
Many people are alone when they suffer a heart attack, what can you do?
Without help a person whose heart stops beating properly begins to feel faint and has about 10 seconds left before losing consciousness.
However, these victims can help themselves by coughing repeatedly and very vigorously.
A deep breath should be taken before each cough, and the cough must be deep and prolonged, as when producing sputum from deep inside the chest.
A breath and a cough must be repeated about every two seconds without let up until help arrives, or until the heart is felt to be beating normally again.
Deep breaths get oxygen into the lungs and coughing movements squeeze the heart and keep the blood circulating. The squeezing pressure on the heart also helps it regain normal rhythm. In this way, heart attack victims can get to a phone and, between breaths, call for help. You'll be giving yourself CPR with this technique.
Tell as many other people as possible about this, it could save their life!