Ik weet even niet hoe ik de volgende code moet uitlezen
Het gaat om time="2011-03-07"
Ik wil dat zelf kunnen wijzigen.
Hoe doe ik dat met->
<?xml version="1.0" encoding="UTF-8"?><gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"><gesmes:subject>Reference rates</gesmes:subject><gesmes:Sender><gesmes:name>European Central Bank</gesmes:name></gesmes:Sender>
<Cube><Cube time="2011-03-07">
<Cube currency="USD" rate="1.4028"/>
<Cube currency="JPY" rate="115.15"/>
<Cube currency="BGN" rate="1.9558"/>
<Cube currency="CZK" rate="24.226"/>
<Cube currency="DKK" rate="7.4572"/>
<Cube currency="GBP" rate="0.861"/>
<Cube currency="HUF" rate="271.66"/>
<Cube currency="LTL" rate="3.4528"/>
</Cube> Het gaat om time="2011-03-07"
Ik wil dat zelf kunnen wijzigen.
Hoe doe ik dat met->
[COLOR= #0000BB]<?php
$XML[/COLOR][COLOR= #007700]=[/COLOR]simplexml_load_file[COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist-90d.xml"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$XML[/COLOR][COLOR= #007700]->[/COLOR]Cube[COLOR= #007700]->[/COLOR]Cube[COLOR= #007700]->[/COLOR]Cube [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$rate[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]hier komt me content dan[/COLOR][COLOR= #007700];
}[/COLOR]
?>