note 47975 deleted from function.chunk-split by nlopess
| From: | nlopess@php.net | Date: | Fri, 11 Mar 2005 23:34:08 +0000 |
| Subject: | note 47975 deleted from function.chunk-split by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86308@lists.php.net to get a copy of this message | ||
Note Submitter: tapaniaaNOSPAM at kolumbus dot fi
----
You can also use this kind of function to do the same thing as described below:
<?php
function chunk_number($data) {
$data = strrev(chunk_split(strrev($data),3,","));
$data = substr($data, 1, strlen($data));
return $data;
}
echo chunk_number(1200992);
// => 1,200,992
?>