c_ws_plugin__s2member_utils_cur
public class c_ws_plugin__s2member_utils_cur
3.5
( 2 Methods ) Method Summary | |
---|---|
public static float|str|bool | convert(int|str $a, str $from, str $to) Currency converter. |
public static str | symbol(str $currency) Converts Currency Codes to Currency Symbols. |
public static float|str|bool convert(int|str $a, str $from, str $to)
Currency converter.
Uses the Google® currency conversion API.
3.5
int|str $a - The amount, in $from
.
str $from - A 3 character Currency Code.
str $to - A 3 character Currency Code.
float|str|bool - A numeric amount in $to
, after having been converted. Else false.
http://www.techmug.com/ajax-currency-converter-with-google-api/
public static str symbol(str $currency)
Converts Currency Codes to Currency Symbols.
Defaults to the $
dollar sign.
110531
str $currency - Expects a 3 character Currency Code.
str - A Currency Symbol. Defaults to the $
sign.
Currency utilities.