0

当我做 aprint_r($this->info->artist->image[4]);时,我得到这个:

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

我如何获得[#text]零件?

4

2 回答 2

3

你会这样做:

$this->info->artist->image[4]->{'#text'};
于 2013-03-31T14:26:50.273 回答
3
$this->info->artist->image[4]->{'#text'};
于 2013-03-31T14:26:58.290 回答