开发者

PHP: How to get this string value?

开发者 https://www.devze.com 2023-01-02 03:23 出处:网络
I have an array with the following data: [steamid] => stdClass Object ( [0] => Shakyor ) How 开发者_运维百科can I get the \'Shakyor\' string from there?

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

精彩评论

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