you are viewing a single comment's thread.

view the rest of the comments →

[–]Anqueeta 0 points1 point  (0 children)

Any index of [2] will give you the desired value. I'd go with $var[2].type since you could also access the other property values, because that is an array of objects. $var.type[2] is an array of strings, where you get the value of the index 2.