Function __global->ecommerce_get_currency_symbol

Definitions

sources/ecommerce.php

  • Get the symbol of the currency we're trading in.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$currency ?ID_TEXT No No Null N/A N/A The currency (null: configured)

Returns

  • The currency symbol
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the symbol of the currency we're trading in.
 *
 * @param  ?ID_TEXT $currency The currency (null: configured)
 * @return ID_TEXT The currency symbol
 */

function ecommerce_get_currency_symbol(?string $currency = null) : string