Number_format inverse php

$num = '1,200,998';
$real_integer = filter_var($num, FILTER_SANITIZE_NUMBER_INT);
echo $real_integer;
// 1200998
Sameer Ahmed Mallah