note 93973 added to function.money-format
| From: | clgs dot panda at gmail dot com | Date: | Fri, 09 Oct 2009 07:43:53 +0000 |
| Subject: | note 93973 added to function.money-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161582@lists.php.net to get a copy of this message | ||
function FriendlyCash($num) {
$num=(string)$num;
$len=strlen($num);
$num_text='';
if($len>3){
$m=3;
for($i=$len;$i>0;) {
if($i<3) {$m=$i; $i=0;}
else $i-=$m;
$num_text=substr($num,$i,$m).' '.$num_text;
}
}
else
$num_text=$num;
return $num_text.' ÑÑб.';
}
----
Server IP: 92.48.119.85
Probable Submitter: 194.143.150.134
----
Manual Page -- http://www.php.net/manual/en/function.money-format.php
Edit -- https://master.php.net/note/edit/93973
Del: integrated -- https://master.php.net/note/delete/93973/integrated
Del: useless -- https://master.php.net/note/delete/93973/useless
Del: bad code -- https://master.php.net/note/delete/93973/bad+code
Del: spam -- https://master.php.net/note/delete/93973/spam
Del: non-english -- https://master.php.net/note/delete/93973/non-english
Del: in docs -- https://master.php.net/note/delete/93973/in+docs
Del: other reasons-- https://master.php.net/note/delete/93973
Reject -- https://master.php.net/note/reject/93973
Search -- https://master.php.net/manage/user-notes.php