note 7914 added to number_format
| From: | j dot kase at privador dot com | Date: | Sat, 19 Aug 2000 16:52:17 +0000 |
| Subject: | note 7914 added to number_format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2656@lists.php.net to get a copy of this message | ||
Here's an easy workaround if you need to have a string, instead of a single char, as thousands
separator. I need to have a space that won't be wrapped, so I want to have
" " instead of a " " there. To accomplish this, do the following:
<pre>
$formatted_number_string = ereg_replace("
"," ",$number_format($number,2,"."," "))
</pre>
http://www.php.net/manual/function.number-format.php