Jump to content

Recommended Posts

Hi, I'm experiencing a little problem picking out specific values in an array that I have - I have used var_dump to out put the following but I cannot pick out the specific items I want:

 

array(1) {
  [0]=>
  array(9) {
    ["ARTIST_MBID"]=>
    string(36) "329f95db-f02e-40bf-a5f7-0dea11529ce3"
    ["ARTIST"]=>
    string(13) "Enter Shikari"
    ["NAME"]=>
    string(11) "Juggernauts"
    ["MBID"]=>
    string(0) ""
    ["ALBUM_MBID"]=>
    string(0) ""
    ["ALBUM"]=>
    string(0) ""
    ["URL"]=>
    string(52) "http://www.last.fm/music/Enter+Shikari/_/Juggernauts"
    ["DATE_UTS"]=>
    string(10) "1240718080"
    ["DATE"]=>
    string(18) "26 Apr 2009, 03:54"
  }
}

 

 

I want to be able to get say the artist name and song name as strings. I have tried using foreach to no avail and because the arrays are embedded within one another I don't quite know how to do it, could anyone help at all?

 

Thanks in advance...

 

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.