Convert::money
Usage
string Convert::money(string | float $amount, [ string $currency = '' ], [ bool $include_abbr = true ], [ bool $is_crypto = false ])Description
Format amount.Parameters
Parameter | Required | Type | Description |
---|---|---|---|
$amount | Yes | string | float | |
$currency | No | string | Currency code to format amount to. If blank, will use authenticated user's profile currency. |
$include_abbr | No | bool | Whether or not to include the three letter currency code in result. |
$is_crypto | No | bool |