<?php $orderAmount = '1 123,33'; $float = floatval(str_replace(array(',', ' '), array('.', ''), $orderAmount)); $a = $float * 100; echo $a;
You have javascript disabled. You will not be able to edit any code.