Hallo zusammen.
Ich schicke einen Aufruf an einen Web-Service. Zurück bekomme ich sowas hier:
XML
<?xml version="1.0" encoding="UTF-8"?>
<returndata>
<success code="200" remaining="998" resetdate="1401099136" />
</returndata>
Nun möchte ich gerne die drei Key-Value-Paare in Variablen übernehmen.
Also success code="200", remaining="998" und resetdate="1401099136" sollen zu
$success_code = "200"
$remaining = "998"
$resetdate = "1401099136"
werden.
Irgendwie bekomme ich das nicht hin. Ich dachte an so Sachen wie StringCompare mit RegExp. oder StringRegExp
Aber die RegExp. schaffen mich. Ich bin dafür zu blöd oder so
Gibt es noch einen anderen Weg um an meine Daten zu kommen oder könnte jemand mal ein Beispiel zeigen? Aus der Hilfe werde ich leider auch nicht schlauer.
Gruß,
Matthias