Forse sbagliavi i parametri...
codice:
$num = 23456789;
$new = number_format($num,0,'','.');
echo "$num - $new
";
ciao.