Easily convert between currencies with PHP using the Google Calculator API. This tutorial shows you how to create a function to convert between any currency and a form to allow user submission. Official website http://phpacademy.org Support Forum http://phpacademy.org/forum Follow us o... More
Added Feb 6, 2012
Channel Education
Duration 11:55 | views 6340
VIP Comments 0
Recent Comments 24
Rating:
Tags php google currency converter conversion api create gbp to usd aud calculator
Permalink:
Post a VIP comment
VIP Comments (0)
Recent Comments (24)
MikeGittins Says:
adding $result = str_replace("\xA0", " ", $result); following the file_get_contents line will remove the non breaking character that Google API returns with large numbers
sputtnikk11 Says:
THANK YOU ALEX for listening to me! I sent you a request for API usage: and you gave me it! Thanks a million! <3 :D
MikeGittins Says:
@phpacademy Have you tried using large numbers. echo number_format((float) $conversion[0], 2) . ' = ' . number_format((float) $conversion[1], 2); displays ... 4,535.00 GBP = 5.00 EUR and echo $conversion[0] . ' = ' . $conversion[1]; displays...4535 British pounds GBP = 5�401.57794 Euros EUR Where Google API returns a space it is replaced by �
aslamdoctor11 Says:
Nice video, Thanks for sharing. One thing I noticed you should correct in this video descriptions. You have written "Google Calendar API" which is actually Calculator API :)
phpacademy Says:
Oops, I meant calculator.
PaT07M Says:
Great video. I haven't known this way of getting information.
koenigsegg1000 Says:
yes, type your math problem in google search box, gives you an answer(ex: type "2+2"...gives "4").
RemysWebpageMaker Says:
wait in the description did you purposely say Google Calender API or did you mean calculator?
Wiejeben Says:
Thanks a lot for the lesson!
phpacademy Says:
Yes, as soon as I get time to get some really good content together.
phpacademy Says:
See my reply to comment below.
phpacademy Says:
Performance. For a larger data set, I would.
BGxApixen Says:
Are you ever going to get into Classes and Objects?
ordiantakeover Says:
Isn't it better to use json_decode?
iBoserup Says:
WTF? So Google has a calculator API..
AarClay Says:
it looks like a JSON-string? Why don't you use json_decode() ?
terre0jk Says:
thank you alex
dunnkers Says:
its easy listening to your voice, good tut
bamahacker01 Says:
Really good one. Thanks! I know php, so it didn't scare me, but I learned something new which is great.
matii2639 Says:
Hey alex very nice vid! :D Can you make one using Google Voice API?
phpacademy Says:
You're welcome!
SentaHosting Says:
Brilliant, thanks Alex!