a code to conversion from USD to other currency

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ardoa
Forum Newbie
Posts: 7
Joined: Tue Oct 05, 2010 6:49 am

a code to conversion from USD to other currency

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: a code to conversion from USD to other currency

Post by requinix »

Do you not have access to the number itself? Without the dollar sign and currency name?
ardoa
Forum Newbie
Posts: 7
Joined: Tue Oct 05, 2010 6:49 am

Re: a code to conversion from USD to other currency

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: a code to conversion from USD to other currency

Post 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?
Post Reply