<?php $price = "one price $1,234,567.223 and some other price $60"; preg_match_all('/([\d\.,]+)/',$price,$match); Var_dump($match); $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); Var_export($formatter->parseCurrency($price, $curr));
You have javascript disabled. You will not be able to edit any code.