TwistPHP Documentation

convertCurrency

File path: dist/twist/Core/Utilities/Localisation.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

convertCurrencyConvert an amount between two Currency ISO codes

Parameters

Name Type Description
$strFromISOstringn/a
$strToISOstringn/a
$fltAmountfloatn/a
[$blFormat = true]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strFromISO 'foo';
$strToISO 'foo';
$fltAmount 6.12;
$blFormat true;

//Call the function convertCurrency with the example vars
Twist::Localisation() -> convertCurrency($strFromISO$strToISO$fltAmount$blFormat);