/ Published in: PHP
Expand |
Embed | Plain Text
<?php function convertit($num){ if ($pos !== false) { } else { $ps = "00"; } $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++){ $explrestunits .= (int)$expunit[$i].","; } $thecash = $explrestunits.$lastthree; } else { $thecash = $convertnum; } return $thecash.".".$ps; } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Hi
Wrong output 11,0,000.00 for 1100000 Which should be 11,00,000.00 modification required @ line number 17 as
And line number 25 as
Or Line number 25 will be
return ltrim($thecash.".".$ps,"0");