Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/helpers/money.php | ||
---|---|---|
*/
|
||
class Money
|
||
{
|
||
/**
|
||
* Formats given amount of money.
|
||
*
|
||
* @author Ondrej Fibich
|
||
* @param double $amount
|
||
* @return string Formated money string
|
||
*/
|
||
public static function format($amount)
|
||
{
|
||
return str_replace(' ', ' ', number_format(doubleval($amount), 2, ',', ' '));
|
||
}
|
||
|
||
/**
|
||
* Finds all payments by given payment rate
|
Také k dispozici: Unified diff
Release 1.1.0