This is so simple if you use a local server like wamp or xampp or other server then you should have to enable extension of openssl first in php.ini
extension=php_openssl.dll `allow_url_fopen = On`
then you will be able to run my code
else you are runing your website with online hosting then you dont need to do this so you have to add this php function in your php script
",$get);
$get = explode("",$get[1]);
$converted_amount = $get[0];
echo round($converted_amount,2);
}
currencyCnv(100,'GBP','PKR');
//currencyCnv(you amount from form input filed ,currency from select box,currency to select box)
//any currency convert with this code