I'm having trouble accessing an array inside of an StdObject. The object looks like this in my debugger:
$obj = {stClass}[9]
1234 = {array} [28]
0 = "some text"
1 = false
2 = true
3 = ""
...
It seems like I should be able to access elements in the array like this:
$tmp = 1234;
echo $Obj->$tmp[0]
But I get Notice: Undefined property: stdClass::$5
However, when I do this:
print_r($Obj->$tmp);
It prints out the array just fine.
Why am I unable to access an element in the array, even though I can print out the array?