I decided it was worth putting an anecdote in as a way to handle this, as you've edited now to say you're stuck with only a couple of dollars.
In 2008 I and a friend did La Tomatina, the tomato fight near Valencia, Spain. We had a rental car, and parked at the entrance to Buñol, the town where it happens. Concerned about getting our stuff wrecked by tomato juice, we were fortunately smart enough to put everything in the car, except for a few items, which I will list:
car keys, 50 Euros cash, and mobile phone
During the fight, I was pickpocketed. When you have 10 people up against you, there's not much you can do about it, but I was impressed given it was in a bag in my velcro-closed pocket in my shorts. Full props to them.
So now we had:
nothing
We ran into some friends there who were also there for the event, and they lent us a few Euro coins. So now we're in the position you describe, having:
nothing, except for a few coins.
We considered breaking into our rental, but had no phone in there anyway.
Our 'solution' evolved, as we wandered around town. We reported it first, as this was now evidence for insurance. Next we needed to contact the rental car agency. It was nearly impossible to borrow a phone! No restaurant or anyone was prepared to help us. We used most of the few coins on a public phone calling the rental company, but they would keep cutting us off when we couldn't speak Spanish.
Finally we returned to the Police Station, and an old cop took pity on us, and phoned on our behalf. He organised for the rental company to come fetch us, and they exchanged cars.
Next, I needed to cancel my phone. Unfortunately I was late getting to cancel that, and the weasel who stole my phone racked up several hundred pounds worth of phone bills. Vodafone refused to reimburse, despite the fact there was no way I could have contacted them any earlier. Wasn't happy about that.
In hindsight:
- spread the money around. I was the only one looking after cash. We should have split it among us.
- my credit cards and passport were fortunately in the car. Normally I travel with the passport on me, despite what some people say, I prefer to know where it is at all times, rather than risk NOT knowing when it's gone, at least this way I will know when it's gone wrong.
- photocopy everything.
- cancel everything as early as you possibly can. Credit card companies, phone companies will often try their best not to refund you.
- have a lock on your phone. I did, but they used the sim in another phone. However, it at least requires they have another phone to transfer to, which saves you at least a minute of them using it.
- when possible, keep cards separate - maybe a spare credit card in your sock, for example.
- always keep an eye on your stuff. It doesn't take long to develop a habit of just glancing at your bag, or subconsciously feeling in your pocket.