public static function parseFloat($value) { $value = preg_replace('/[^0-9\\.\\-]/', '', $value); return floatval($value); }