Use an if/else if/else structure instead of a series of disjointed if structures.Use = (comparison operator) instead of = (assignment operator) when you compare two values.Your code is a nice one and will work perfectly if two adjustments are made: Current USD to PHP exchange rate equals 56.0700 Philippines Pesos per 1 Dollar. Right now you need to learn the basics and shouldn’t focus on making your code concise by using advanced strategies. At Myfin online currency converter you can find 150 USD to PHP chart, exchange rate stats and other historical info. Since you’re new to PHP, I’m not trying to show you complicated ways for your currency converter. USD to PHP 150 USD to PHP 150 US Dollar to Philippine Peso 150 US Dollars is 8 403.45585 Philippine Pesos as of 03:24 PM 06-03-2023. Use the ANZ foreign exchange calculator, an enhanced currency converter, to view todays FX rates, convert currencies and any likely fee(s) associated with. You can also access currency exchange rates dating back to January 1990. You can convert world currencies, precious metals, or obsolete currencies. 1 United States dollar 0 Philippine peso, 1 Philippine peso 0 United States dollar. To use OANDA’s free currency converter, type into the relevant field currency names, 3-letter ISO currency symbols, or country names to select your currency. And that currencies and the mount i typed in remain in the results without getting reset. Quickly and easily calculate foreign exchange rates with this free currency converter. I need to make it so it converts FROM and TO currency that i pick and the conversion gets displayed in the amount_output box. I am new to PHP so i am not sure what i am doing wrong but it seems only last if statement is getting executed which is USD to USD no matter what currencies i pick. Conversion from United States dollar to Philippine peso can be done at current rates as well as at historical rates to do this, select the desired exchange rate date.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |