{"id":971,"date":"2017-06-01T11:57:30","date_gmt":"2017-06-01T08:57:30","guid":{"rendered":"https:\/\/burakcaliskan.org\/blog\/?p=971"},"modified":"2017-06-01T12:05:53","modified_gmt":"2017-06-01T09:05:53","slug":"guncel-doviz-kuru-cekmek","status":"publish","type":"post","link":"https:\/\/burakcaliskan.org\/blog\/guncel-doviz-kuru-cekmek\/","title":{"rendered":"G\u00fcncel D\u00f6viz Kuru \u00c7ekmek"},"content":{"rendered":"<pre class=\"lang:default decode:true\">&lt;?php\r\n$xml = simplexml_load_file('http:\/\/www.tcmb.gov.tr\/kurlar\/today.xml');\r\nforeach ($xml-&gt;Currency as $Currency) {\r\n    \/\/ USD ALI\u015e-SATI\u015e\r\n    if ($Currency['Kod'] == \"USD\") {\r\n        $usd_DS = $Currency-&gt;BanknoteSelling;\r\n        $usd_DA = $Currency-&gt;BanknoteBuying;\r\n    }\r\n    \/\/ EURO ALI\u015e-SATI\u015e\r\n    if ($Currency['Kod'] == \"EUR\") {\r\n        $eur_DS = $Currency-&gt;BanknoteSelling;\r\n        $eur_DA = $Currency-&gt;BanknoteBuying;\r\n    }\r\n    \/\/ USD EFEKT\u0130F ALI\u015e-SATI\u015e\r\n    if ($Currency['Kod'] == \"USD\") {\r\n        $usd_ES = $Currency-&gt;ForexSelling;\r\n        $usd_EA = $Currency-&gt;ForexBuying;\r\n    }\r\n    \/\/ EURO EFEKT\u0130F ALI\u015e-SATI\u015e\r\n    if ($Currency['Kod'] == \"EUR\") {\r\n        $eur_ES = $Currency-&gt;ForexSelling;\r\n        $eur_EA = $Currency-&gt;ForexBuying;\r\n    }\r\n}\r\n?&gt;\r\n&lt;table&gt;\r\n    &lt;tr&gt;\r\n        &lt;td style=\"width: 200px;\"&gt;&lt;strong&gt;Para Birimi&lt;\/strong&gt;&lt;\/td&gt;\r\n        &lt;td style=\"width: 50px;\"&gt;&lt;strong&gt;Al\u0131\u015f&lt;\/strong&gt;&lt;\/td&gt;\r\n        &lt;td style=\"width: 50px;\"&gt;&lt;strong&gt;Sat\u0131\u015f&lt;\/strong&gt;&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n        &lt;td&gt;Dolar (USD)&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $usd_DS; ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $usd_DA; ?&gt;&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n        &lt;td&gt;Euro (EUR)&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $eur_DS; ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $eur_DA; ?&gt;&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n        &lt;td&gt;Dolar (USD) Efektif&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $usd_ES; ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $usd_EA; ?&gt;&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n    &lt;tr&gt;\r\n        &lt;td&gt;Euro (EUR) Efektif&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $eur_ES; ?&gt;&lt;\/td&gt;\r\n        &lt;td&gt;&lt;?php echo $eur_EA; ?&gt;&lt;\/td&gt;\r\n    &lt;\/tr&gt;\r\n&lt;\/table&gt;<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">echo \"&lt;pre&gt;\";\r\n\/\/print_r($xml);\r\necho \"&lt;\/pre&gt;\";<\/pre>\n<p>&nbsp;<\/p>\n<p>Forex Fiyatlar\u0131 i\u00e7in<br \/>\n$usd_DS = $Currency-&gt;ForexSelling;<br \/>\n$usd_DA = $Currency-&gt;ForexBuying;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php $xml = simplexml_load_file(&#8216;http:\/\/www.tcmb.gov.tr\/kurlar\/today.xml&#8217;); foreach ($xml-&gt;Currency as $Currency) { \/\/ USD ALI\u015e-SATI\u015e if ($Currency[&#8216;Kod&#8217;] == &#8220;USD&#8221;) { $usd_DS = $Currency-&gt;BanknoteSelling; $usd_DA = $Currency-&gt;BanknoteBuying; } \/\/ EURO ALI\u015e-SATI\u015e if ($Currency[&#8216;Kod&#8217;] == &#8220;EUR&#8221;) { $eur_DS = $Currency-&gt;BanknoteSelling; $eur_DA = $Currency-&gt;BanknoteBuying; } \/\/ USD EFEKT\u0130F ALI\u015e-SATI\u015e if ($Currency[&#8216;Kod&#8217;] == &#8220;USD&#8221;) { $usd_ES = $Currency-&gt;ForexSelling; $usd_EA = $Currency-&gt;ForexBuying; } [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":973,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[486,484,483,487,485],"_links":{"self":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/971"}],"collection":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":3,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/971\/revisions\/975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media\/973"}],"wp:attachment":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}