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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.