You are trying to access an array as object

You are trying to access an array as an object. You can not access array values as object. There are two different ways to access the array and object in php

Answers 1