Jump to content

xml explode


duck

Recommended Posts

hello all i hope sombody can help me with this.

i got a XML file wich got this tag init  

<SONGTITLE>10CC - I Took You Home</SONGTITLE>

so itsthe meaning that i get the artist and the songtitle seperate to go into this line 

echo LastFMArtwork::getArtwork('artist', 'title', true, "medium");

could sombody pls tell me how to do this :)

Link to comment
https://forums.phpfreaks.com/topic/282070-xml-explode/
Share on other sites

that actualy just returns me the string 

Array
(
    [0] => SimpleXMLElement Object
        (
            [0] => Jennifer Lopez - Dance Again
        )

)

wich i could get alot easyer with just this i think : echo $xml->SONGTITLE." ";

but thats not my question at all . what ime asking is how to get the artist and songtitle seperate and then how to use them .

Link to comment
https://forums.phpfreaks.com/topic/282070-xml-explode/#findComment-1449157
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.