Function __global->get_currency_symbol
Definitions
sources/currency.php
- Get the symbol for a currency.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $currency | ID_TEXT | No | No | required parameter | N/A | N/A | The currency |
Returns
- A pair: The symbol, and whether the symbol is okay to use on its own (as it is the accepted default for the symbol)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the symbol for a currency.
*
* @param ID_TEXT $currency The currency
* @return array A pair: The symbol, and whether the symbol is okay to use on its own (as it is the accepted default for the symbol)
*/
function get_currency_symbol(string $currency) : array
* Get the symbol for a currency.
*
* @param ID_TEXT $currency The currency
* @return array A pair: The symbol, and whether the symbol is okay to use on its own (as it is the accepted default for the symbol)
*/
function get_currency_symbol(string $currency) : array

