Last active
January 28, 2017 13:20
-
-
Save ziyaddin/8754655 to your computer and use it in GitHub Desktop.
Parse Cbar.az currencies with 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 | |
$date = date ("d.m.Y"); | |
$url = simplexml_load_file("http://cbar.az/currencies/" .$date.".xml"); | |
echo $url->ValType[0]->Valute[2]->Nominal; | |
echo $url->ValType[0]->Valute[2]->Name; | |
echo $url->ValType[0]->Valute[2]->Value ."<br />"; | |
echo $url->ValType[0]->Valute[34]->Nominal; | |
echo $url->ValType[0]->Valute[34]->Name; | |
echo $url->ValType[0]->Valute[34]->Value ."<br />"; | |
//go with this logic... | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code is written by Kamran Nadjafzadeh.