How to get data from array in object

后端 未结 5 1258
情书的邮戳
情书的邮戳 2021-01-23 15:01

I can\'t seem to get specific data from an array inside an object.

$this->fields->adres gets the address correctly, but i can\'t get a level deeper.

5条回答
  •  孤城傲影
    2021-01-23 15:34

    As fields is already an array, try this:

    $this->fields['province'][0]
    

    This assuming the [_data] object is $this.

提交回复
热议问题