Formatting numbers

hi all
The following input shows values like this:
395900.00

I want the value to show like this:
395,900

		<input type='text' id='contribucion' name='contribucion' value="<?=$contribucion;?>" readonly>
	

How can I do this? Thanks

Yes. Print it out and see for yourself:


echo number_format($contribucion);

Thanks for the reply Cerium so oit would be like this?

<input type=‘text’ id=‘contribucion’ name=‘contribucion’ value=“<?=number_format($contribucion); ?>” readonly>


$numero_formado = number_format($contribucion);

:slight_smile: