- /**
- * 2016-07-04
- * @param float $amount
- * @param string|null $from [optional]
- * @param string|null $to [optional]
- * @return float
- */
- function df_currency_convert($amount, $from = null, $to = null) {
- return df_currency($from)->convert($amount, df_currency_code($to));
- }