/ Published in: PHP

PHP Currency converter function that uses Google
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function currency_convert($from,$to,$amount) { $string = "1".$from."=?".$to; $google_url = "http://www.google.com/ig/calculator?hl=en&q=".$string; $conversion = $converted_amount[0]; $conversion = $conversion * $amount; $rhs = $conversion.$rhs_text; } echo currency_convert('GBP', 'USD',800.00)
Comments
