İnternet Programlama Dersi – 1 (Güz-2017) Hafta – 11 – 2

<?php
/**
 * Created by PhpStorm.
 * User: caglar
 * Date: 07.12.2017
 * Time: 19:53
 */

$link="http://www.tcmb.gov.tr/kurlar/today.xml";

$data = new SimpleXMLElement($link,0,true);

foreach ($data as  $key=>$value)
{
    echo $value->Isim."--> Alış:".$value->ForexBuying."--> Satış:".$value->ForexSelling."<br>";
}

 

Share