protected static function fmtRep($char, &$string, $value)
    {
        if (preg_match_all('/([0-9]{0,1})' . $char . '/', $string, $m)) {
            for ($i = 0; $i < count($m[0]); $i++) {
                $val    = round($value, (int)$m[1][$i]);
                $string = str_replace($m[0][$i], $val, $string);
            }
        }
    }
protected static function fmtRep($char, &$string, $value)
    {
        if (preg_match_all('/([0-9]{0,1})' . $char . '/', $string, $m)) {
            for ($i = 0; $i < count($m[0]); $i++) {
                $val    = round($value, (int)$m[1][$i]);
                $string = str_replace($m[0][$i], $val, $string);
            }
        }
    }
protected static function fmtRep ( $ char , & $ string , $ value ) { if ( preg_match_all ( '/([0-9]{0,1})' . $ char . '/' , $ string , $ m ) ) { for ( $ i = 0 ; $ i < count ( $ m [ 0 ] ) ; $ i ++ ) { $ val = round ( $ value , ( int ) $ m [ 1 ] [ $ i ] ) ; $ string = str_replace ( $ m [ 0 ] [ $ i ] , $ val , $ string ) ; } } }
Performs a decimal regular expression string formatter replace that
provides value at a specified decimal precision.

@param $char   Character to match for replacing
@param $string String being replaced
@param $value  Value to replace
Performs a decimal regular expression string formatter replace that provides value at a specified decimal precision .