note 83740 added to function.number-format
| From: | xkeeper at gmail dot com | Date: | Tue, 10 Jun 2008 05:26:05 +0000 |
| Subject: | note 83740 added to function.number-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140291@lists.php.net to get a copy of this message | ||
Technically, you can just use number_format() with "x" as the thousands seperator, then...
<?php
str_replace("x", "character of choice", number_format(1234.56, ".",
"x"));
?>
This will probably be many times more efficient.
----
Server IP: 64.71.164.2
Probable Submitter: 67.185.98.31
----
Manual Page -- http://www.php.net/manual/en/function.number-format.php
Edit -- https://master.php.net/note/edit/83740
Del: integrated -- https://master.php.net/note/delete/83740/integrated
Del: useless -- https://master.php.net/note/delete/83740/useless
Del: bad code -- https://master.php.net/note/delete/83740/bad+code
Del: spam -- https://master.php.net/note/delete/83740/spam
Del: non-english -- https://master.php.net/note/delete/83740/non-english
Del: in docs -- https://master.php.net/note/delete/83740/in+docs
Del: other reasons-- https://master.php.net/note/delete/83740
Reject -- https://master.php.net/note/reject/83740
Search -- https://master.php.net/manage/user-notes.php