Remove Commas from very large integers (PHP)

input: 1,234,567
output: 1234567 

function remove_commas ($data) {
     return (int) str_replace(',' , '', $data);
} 
Let's share thisShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn