currency in php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. $parameters['parameters']['FromCurrency'] = 'EUR';
  4. $parameters['parameters']['ToCurrency'] = 'HUF';
  5.  
  6. $soapclient = new SoapClient('http://www.webservicex.net/CurrencyConvertor.asmx?WSDL');
  7. $result = $soapclient->__soapCall('ConversionRate', $parameters);
  8.  
  9. var_dump($result->ConversionRateResult);
  10.  
  11. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.