开发者

PHP: How to get this string value?

I have an array with the following data:

[steamid] => stdClass Object
(
    [0] => Shakyor
)

How 开发者_运维百科can I get the 'Shakyor' string from there?

  • $array->$steamid doesn't work.
  • $array->$steamid[0] doesn't work.
  • $array->$steamid->0 is not legal markup obviously.


$array->$steamid->{0}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜