I want to parse a currency from a string in PHP, I've had a look at number formatter but haven't got PHP 5.3 or the ability to add extensions.
The currency will only exist once per string, and will be prefixed with a currency symbol, in my case the pound sign £. The currency may be in one of the following formats:
£0.90
£100
£100.10
£1000
What would be the best method of achieving this?
Edit
Here is an example string:
Paid a bill £153.93
I want to get the currency value into an variable.