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?
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?
You would do:
$this->info->artist->image[4]->{'#text'};