validatecurrency

validate_currency
SYNOPSIS

validate_currency($currency)

DESCRIPTION

validate_currency_name returns true if $currency is a supported currency, false otherwise.

CODE
  1. function validate_currency($currency) {
  2.     global $supported_currencies;
  3.  
  4.     return in_array($currency, $supported_currencies);
  5. }

Comments

To add a comment, click here.