Function __global->country_to_currency

Definitions

sources/currency.php

  • Convert a country code to a currency code.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$country ID_TEXT No No required parameter N/A N/A The country code

Returns

  • The currency code (null: unknown)
  • Type: ?ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert a country code to a currency code.
 *
 * @param  ID_TEXT $country The country code
 * @return ?ID_TEXT The currency code (null: unknown)
 */

function country_to_currency(string $country) : ?string