Created
June 9, 2014 16:37
-
-
Save oriolrivera/9f2eb6e53a47c7a5cf55 to your computer and use it in GitHub Desktop.
Obtener tasa de cambio del dolar en PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$datafeed= file_get_contents("http://rate-exchange.appspot.com/currency?from=USD&to=DOP"); | |
$obj = json_decode($datafeed); | |
echo $obj->{'rate'}; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment