0

When I do a print_r($this->info->artist->image[4]);, I get this:

stdClass Object
(
    [#text] => http://userserve-ak.last.fm/serve/_/68145708/AWOLNATION+PNG.png 
    [size] => mega
)

How do I get the [#text] part?

Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338

2 Answers2

3

You would do:

$this->info->artist->image[4]->{'#text'};
Michael
  • 11,912
  • 6
  • 49
  • 64
3
$this->info->artist->image[4]->{'#text'};
Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308