25
validatecurrency
validate_currency
SYNOPSIS
validate_currency($currency)
DESCRIPTION
validate_currency_name returns true if $currency is a supported currency, false otherwise.
CODE
- function validate_currency($currency) {
- global $supported_currencies;
- return in_array($currency, $supported_currencies);
- }
Comments