Question and answer is powered by AnsPress.io
How to correctly extract string in decimal using PHP.
<code></code>
Try This:-
preg_match_all(‘!d+!’, $price, $matches);
$price_convert = (float)implode(‘.’, $matches[0]);