Bitrix API

Money

Table of Contents

Methods

format()  : string
Get money data in the formatted string representation. Format is specified by the Currency module
formatWithCustomTemplate()  : string
Get money data in the formatted string representation. The provided custom template is used for formatting.

Methods

format()

Get money data in the formatted string representation. Format is specified by the Currency module

public static format(float $sum, string $currencyId) : string
Parameters
$sum : float
$currencyId : string
Return values
string

formatWithCustomTemplate()

Get money data in the formatted string representation. The provided custom template is used for formatting.

public static formatWithCustomTemplate(float $sum, string $currencyId[, string $template = '#' ]) : string

When $template is not provided, no template is used. To use default template, please call Money::format

Parameters
$sum : float
$currencyId : string
$template : string = '#'
Return values
string

        
On this page

Search results