I have the following code:
Code: Select all
$price = preg_replace("/\D/", "",$_GET[price]);
I know how to strip an individual currency symbol, but the users could be using any currency so I'd like to just strip everything that isn't part of the float.