cannot use object of type stdclass as array
Details
It's not an array, it's an object of type stdClass. you cannot access this object as array
$data['dataname'];if you want to access this object.
$data->dataname;
It's not an array, it's an object of type stdClass. you cannot access this object as array
$data['dataname'];if you want to access this object.
$data->dataname;