Page 1 of 1

a code to conversion from USD to other currency

Posted: Thu Oct 07, 2010 1:19 am
by ardoa
Hello, :banghead:
I have a string that show me the invoice in USD DOLLARS, i just need to put a code that will transform that value in DOLLAR to Chilean Pesos, well i can give a echange value for 550 pesos from 1 Dolar.
my string look like this: <?php echo $total_info["total_bill"]; ?>

I need that invoice shows price in Chilean pesos and not in Dollars as it does right now

not show : $100.00 but show: $55.000 Pesos

thanks

Re: a code to conversion from USD to other currency

Posted: Thu Oct 07, 2010 2:24 am
by requinix
Do you not have access to the number itself? Without the dollar sign and currency name?

Re: a code to conversion from USD to other currency

Posted: Thu Oct 07, 2010 2:51 am
by ardoa
tasairis wrote:Do you not have access to the number itself? Without the dollar sign and currency name?
i dont have access to that number, cause it's a variable, it's a total amount in dolars with sign $ , and i need not to shown in dollars but in chilean pesos

Re: a code to conversion from USD to other currency

Posted: Thu Oct 07, 2010 3:23 am
by requinix
ardoa wrote:i dont have access to that number, cause it's a variable
That reason does not make any sense.

Humor me: what does

Code: Select all

print_r($total_info);
display?