How to make thousand marker in text box

a_alrizky's Avatar, Join Date: Jan 2009
Newbie Member
Hi, im wondering how to make a text box with thousand marker.

The textbox is numerical only.

So when people type 4000000 for example,

the textbox will automatically display 4,000,000

Is anyone know how to do that?

Thank you.
Coward's Avatar, Join Date: Jan 2009
Newbie Member
Code:
<?php

$number = 50000000;

echo number_format($number,0,'.',','); 

?>