That's why it is always good to have an emergency fund so you don't get into this hole in the first place.
How I wish people understand that, some are just needing money for their daily needs and no intention to save. A person must be educated to understand how it is necessary I guess.
People actually don't think of it when they have the money in hand and they just spend everything without thinking to save some of it which can be of work later on, they even buy the things they don't need and later on they realize they shouldn't have done that.