<?php $string = '123,456'; $float = (new NumberFormatter('en_UK', NumberFormatter::DECIMAL))->parse($string); var_dump( (new NumberFormatter('fa_IR', NumberFormatter::DECIMAL))->format($float) );
You have javascript disabled. You will not be able to edit any code.