How to access nested array values

后端 未结 6 1870
轮回少年
轮回少年 2021-01-26 18:03

I have the following array that I need to use in a laravel email view template

$inputs[\'test\']

Which looks like this when I dd($inputs[

6条回答
  •  渐次进展
    2021-01-26 18:09

    You have to use array not object loop:

    foreach($inputs['test']['order'] as $test){           
            echo $test;
    
    }
    

提交回复
热议问题