Commit df95dfe9 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 8006beb7
...@@ -167,12 +167,13 @@ class Media { ...@@ -167,12 +167,13 @@ class Media {
xml_parser_free($p);*/ xml_parser_free($p);*/
$xml = simplexml_load_string($xmlstring); $xml = simplexml_load_string($xmlstring);
$json = json_encode($xml); $json = json_encode($xml,JSON_PRETTY_PRINT);
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);
//print_r($vals); //print_r($vals);
......
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