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[
Try
$inputs['test']['order'][0]
Basically, php reads the nested arrays as arrays in arrays .. so no matter how many arrays nested you can always use [][][][][]
php manual
"bar",
42 => 24,
"multi" => array(
"dimensional" => array(
"array" => "foo"
)
)
);
var_dump($array["foo"]);
var_dump($array[42]);
var_dump($array["multi"]["dimensional"]["array"]);
?>
and you can use it in looping as such
foreach($inputs['test']['order'] as $test){
echo $test;}