Commit 6ed6c6a3 authored by Nico Schallehn's avatar Nico Schallehn

test

parent df95dfe9
...@@ -168,11 +168,11 @@ class Media { ...@@ -168,11 +168,11 @@ class Media {
$xml = simplexml_load_string($xmlstring); $xml = simplexml_load_string($xmlstring);
$json = json_encode($xml,JSON_PRETTY_PRINT); $json = json_encode($xml,JSON_PRETTY_PRINT);
echo $json; //echo $json;
$array = json_decode($json,TRUE); $array = json_decode($json,TRUE);
/*foreach ($array["File"]["Track"] as $key => $value) { foreach ($array["File"]["track"] as $key => $value) {
echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL; echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
}*/ }
//var_dump($array); //var_dump($array);
//print_r($array); //print_r($array);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment