number_format inside <input type = "text">


I used this code for displaying formatted number and I notice that instead comma(,) it become point(.):

$P28_maxdoz = $row['P28_maxdoz'];
$P28_maxdoz = number_format($P28_maxdoz, 2, '.', ',');

<td><input type='text' name='P28_maxdoz' value="<?php echo $P28_maxdoz;?>"></td>

the output is : 22.782.20

i need output is : 22,782.20

Thank you

And do you make modifications to the variable anywhere else? Your code above obviously isnt complete.