I have object:
object(stdClass)#6 (4) {
[0]=> object(stdClass)#3 (2) {
["name"]=> string(3) "Jan"
["job"]=> string(2) "IT"
}
[1]=> object(stdClass)#2 (2) {
["name"]=> string(4) "Adam"
["job"]=> string(2) "PR"
}
[2]=> object(stdClass)#4 (2) {
["name"]=> string(6) "Wojtek"
["job"]=> string(2) "IT"
}
[3]=> object(stdClass)#5 (2) {
["name"]=> string(6) "Marcin"
["job"]=> string(3) "Car"
}
}
My problem is: how I can use this object:
object(stdClass)#3 (2) {
["name"]=> string(3) "Jan"
["job"]=> string(2) "IT"
}
This object is in class.
Something like this: $this->object->object
or $this->object->0
does not work.
But when I change index number for example: "0" or "1" to "A" or "B" it works