what I mean is that we need to see the value of $number which is getting passed to that function.. so temp change the function to ..
PHP Code:
function prnintg($number){
echo "\$number = {$number}";
return number_format($number,0,'',',');
}
that may or may not give us a clue to whats happening, you also need to find the part of the code that calls prnintg($someval)