$number = '1,000.5669'; $number = (float) str_replace(',', '', $number); var_dump($number);
$number = 8887; echo number_format($number); //Output:- //8,887