Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   How to make thousand marker in text box (http://www.go4expert.com/forums/thousand-marker-text-box-t15910/)

a_alrizky 23Jan2009 02:23

How to make thousand marker in text box
 
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 31Jan2009 16:50

Re: How to make thousand marker in text box
 
Code:

<?php

$number = 50000000;

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

?>



All times are GMT +5.5. The time now is 16:49.