Skip to content

Instantly share code, notes, and snippets.

View deeprajsinha's full-sized avatar
🎯
Focusing

deeprajsinha

🎯
Focusing
View GitHub Profile
@deeprajsinha
deeprajsinha / gist:f9a0dc137a8a96deeea84cd505686bc2
Created October 24, 2018 14:09
Currency Conversion by google
public function convertCurrency()
{
$amounts = 597;
$from_currency='USD';
$to_currency='INR';
$url = 'https://www.google.co.za/search?q='.$amounts.'+' . $from_currency . '+to+' . $to_currency;
$cSession = curl_init();
curl_setopt($cSession, CURLOPT_URL, $url);