Jump to content

[SOLVED] Help singling out items in an array


x2i

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

 

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.