Currency Converter with php using Google Api
Google provides google finance api to convert currency . here is the simple example of currency conversion using google finance API.
<?php
$from_currency = "USD";
$to_currency = "INR";
$amount = "100.000";
$converted_currency=convertCurrency($from_currency, $to_currency, $amount);
echo $converted_currency;
function convertCurrency($from, $to, $amount){
$from = urlencode($from);
$to = urlencode($to);
$data = file_get_contents("https://finance.google.com/finance/converter?a=$amount&from=$from&to=$to");
preg_match("/<span class=bld>(.*)<\/span>/",$data, $converted);
$converted = preg_replace("/[^0-9.]/", "", $converted[1]);
return number_format(round($converted, 3),2);
}
?>
Look at the way my partner Wesley Virgin's report launches in this SHOCKING and controversial VIDEO.
ReplyDeleteWesley was in the army-and soon after leaving-he found hidden, "mind control" tactics that the government and others used to get anything they want.
These are the exact same tactics many famous people (notably those who "come out of nothing") and elite business people used to become rich and famous.
You probably know that you only use 10% of your brain.
Really, that's because most of your BRAINPOWER is UNCONSCIOUS.
Perhaps this conversation has even taken place INSIDE your own brain... as it did in my good friend Wesley Virgin's brain around seven years ago, while driving an unlicensed, beat-up garbage bucket of a vehicle without a driver's license and with $3.20 in his bank account.
"I'm absolutely frustrated with going through life paycheck to paycheck! Why can't I become successful?"
You've taken part in those conversations, ain't it so?
Your success story is going to start. You just need to take a leap of faith in YOURSELF.
CLICK HERE To Find Out How To Become A MILLIONAIRE
Strange "water hack" burns 2 lbs in your sleep
ReplyDeleteAt least 160 thousand men and women are using a easy and secret "water hack" to drop 1-2lbs each night while they sleep.
It is painless and works every time.
You can do it yourself by following these easy steps:
1) Take a clear glass and fill it half full
2) And now learn this crazy hack
so you'll become 1-2lbs skinnier in the morning!