sorry if the questions seams stupid but I have created an array in my controller and I pass it to the view with the $data[] array.
And I don't get it right to print the array with a for loop.
Can you please help me?
$measurearray = array(
'nr' => $answerNr,
'responsible' => $responsible,
'creationdate' => $InvDate2,
'activity' => $reason
);
$arr[$i] = $measurearray;
$data["failedMeasures_nr"] = $arr;
Output :
Array (
[50] => Array (
[0] => Array (
[nr] => 5d
[responsible] => werner
[creationdate] => asdfgdf
[activity] => appointed.
)
)
[73] => Array (
[0] => Array (
[nr] => 9g
[responsible] => 42887
[creationdate] => Zuzana
[activity] => r the training.
)
)
)
This is what happens when I print_r() it in the view.
My target is to print every single element for itself!