note 54603 added to function.chunk-split
| From: | adrian at zhp dot inet dot pl | Date: | Fri, 08 Jul 2005 21:28:37 +0000 |
| Subject: | note 54603 added to function.chunk-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91701@lists.php.net to get a copy of this message | ||
If you need to output number formated with thousand's separator, just use it:
$number = strrev(chunk_split (strrev($number), 3,' '));
If $number is '1234567', result is '1 234 567'.
----
Manual Page -- http://www.php.net/manual/en/function.chunk-split.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54603
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54603&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54603&report=yes
Search -- http://master.php.net/manage/user-notes.php