$string='\$123.33'; $num=""; for($i=0;$i<strlen($string);$i++)> { if(is_numeric($string[$i])==true || $string[$i]=='.' || || $string[$i]=='-') $num.=$string[$i]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)