From 709fddf6a61a2bcd221cb7395bb674ff4e9ee53e Mon Sep 17 00:00:00 2001 From: avl Date: Wed, 4 Mar 2009 20:20:42 +0200 Subject: [PATCH] moneyFormat --- ipf/utils.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ipf/utils.php b/ipf/utils.php index fb71f24..2e369d4 100644 --- a/ipf/utils.php +++ b/ipf/utils.php @@ -224,8 +224,7 @@ class IPF_Utils { return $i.substr((string)$f,2,6); } - static function TrimP($html) - { + static function TrimP($html){ $strL = "

"; $lenL = 3; $strR = "

"; $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); + } + } -- 2.49.0