} if (mb_strlen($cop) > 2) { $cop = mb_substr($cop, 0, 3); $cop = round($cop / 10); } if ($cop == '00') { $cop = ''; } } if ($text) { $inp = ' '; } else { $inp = ' '; } if (mb_strlen($cost) > 4) { //1000 $l = mb_strlen($cost); $cost = mb_substr($cost, 0, $l - 3) . $inp . mb_substr($cost, $l - 3, $l); } if ($cop) { if ($text) { $cost = $cost . ',' . $cop; } else { $cost = $cost . '<small>,' . $cop . '</small>'; } } return $cost; }); Template::$fs = array("load" => function ($src) { return file_get_contents($src); });