18
14
I'm looking for a way to convert any amount from one currency to another on a website. The user would enter something like '100' and select USD as the currency, and then chooses Australian or Canadian dollars as the currency to convert to. When h...
2010-07-19
1
3
perhaps for some people this is easy, but I want to learn There are 2 currency formats: first currency format is 1,123,123.12 and this format may be like $1,123,123.12 or 1,123,123.12€ and second currency format is 1.123.123,12 and this may b...
2011-01-05
0
2
I have an xml source for daily currency http://www.tcmb.gov.tr/kurlar/today.xml and i need to make a currency optional search for a portal. how can I get a specific data and convert from xml source? :/ i have a search form with: price input ...
2009-11-17
7
5
I want to parse a currency from a string in PHP, I've had a look at number formatter but haven't got PHP 5.3 or the ability to add extensions. The currency will only exist once per string, and will be prefixed with a currency symbol, in my case ...
2011-02-21
3
2
I am importing a file which has amount with different currency signs £12.10 $26.13 €12.50 I need to import and convert this into single currency. I am splitting the string as follows $parts = split(' ', preg_replace("/([0-9])/", ' ${1}', $amo...
2010-06-09
37
5
I have some price values to display in my page. I am writing a function which takes the float price and returns the formatted currency val with currency code too.. For example, fnPrice(1001.01) should print $ 1,000.01 ...
2010-10-25
3
4
I have written a script that gets paypals current rates compared with the dollar every hour (the currency my products are in by default). The user can set their currency in their settings and that is store in the user table. My initial idea was...
2010-01-14
4
4
Is it possible to have PHP format currency values, for example: $200 will output as: $200 (without decimals) but with a number like $200.50 it will correctly output $200.50 instead of $200.5? Thanks! :) ...
2011-02-15
2
1
I have to keep USD as base currency to enable PayPal but I have kept default display currency as INR. Now conversion rate of 45rs per USD give me nasty decimal INR prices, I wana get rid of that, Magento must be using some function to convert pri...
2
1
In an international web app, we deal with currencies like this: USD: 2,400.55 EUR: 2.400,55 I need to be able to print those number as 2400.55 (for usd) and 2400,55 (for EUR) The problem is that I don't know in advance what kind of currency is ...
2011-02-05