Issue
I want to access to 'image'
I reached my array 'questions' with this $file = $request->files->get('quiz')['questions'];
but I can't go further
Can you help me please
Solution
Based on your screen shot you could,
$image = $request->files->get('quiz')['questions'][0]['image'];
Each nested level is an array so you can walk all the way down using the array keys.
Note that [0]
will be the first question, but you probably want all the questions. If so, you can loop over them.
foreach ($request->files->get('quiz')['questions'] as $question) {
$image = $question['image'];
//
}
Answered By - waterloomatt Answer Checked By - David Goodson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.