Hey
I have an array which pulls in the name, artist and URL of songs from a playlist.xml file. The array prints like the following:
Array ( [0] => Array ( [tag] => PLAYLIST [value] => Array ( [0] => Array ( [tag] => SONG [value] => [attributes] => Array ( [URL] => audio/track1.mp3 [TITLE] => Song 1 [ARTIST] => Artist 1 ) ) [1] => Array ( [tag] => SONG [value] => [attributes] => Array ( [URL] => audio/track2.mp3 [TITLE] => Song 2 [ARTIST] => Artist 2 ) ) [2] => Array ( [tag] => SONG [value] => [attributes] => Array ( [URL] => audio/track3.mp3 [TITLE] => Song 3 [ARTIST] => Artist 3 ) ) ) ) )
I need to read the array and print each of the songs as a link in the following way:
<a href='SONG URL'>SONG TITLE - SONG ARTIST</a>
Any help would be greatly appreciated.
Thanks