views:

35

answers:

1

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.
+5  A: 
$array->$steamid->{0}
Artefacto
Thanks, it worked!
Angelo
@ Angelo you should accept the answer.
Kerry