XML and foreach question
the Title is not issued with unfortunately why? where did I fail can someone help me?
foreach ($xml->data->SONGHISTORY->SONG as $dj) {
echo $dj->PLAYEDAT;
echo $dj->TITLE;
}
To me, it seems simply that there is no data node in the XML. From your var_dump output, you should be using this...
foreach ($xml->SONGHISTORY->SONG as $dj) {
echo $dj->PLAYEDAT, ' ', $dj->TITLE, PHP_EOL;
}
foreachloop? You should see something like1392152578Djerem & Shana P - Back To You (T-M-S Remix)1392152331Devel in the Mix by ...