]> git.andy128k.dev Git - ipf.git/commitdiff
moneyFormat
authoravl <alex.litovchenko@gmail.com>
Wed, 4 Mar 2009 18:20:42 +0000 (20:20 +0200)
committeravl <alex.litovchenko@gmail.com>
Wed, 4 Mar 2009 18:20:42 +0000 (20:20 +0200)
ipf/utils.php

index fb71f24b62327632af8347283e8fd5806a249652..2e369d4b70a5f3ffcd0e3ad05645d0b90054792f 100644 (file)
@@ -224,8 +224,7 @@ class IPF_Utils {
                return $i.substr((string)$f,2,6);
     }
 
-    static function TrimP($html)
-    {
+    static function TrimP($html){
         $strL = "<p>";  $lenL = 3;
         $strR = "</p>"; $lenR = 4;
         if (0 == strcasecmp(substr($html, 0, $lenL), $strL)
@@ -235,5 +234,9 @@ class IPF_Utils {
         return $html;
     }
 
+    static function moneyFormat($val){
+        return number_format((float)$val,2);
+    }
+
 }