I get this data array from form and I need to save this array data to five different variables, so how I do,
this is filled with images data
+files: Symfony\Component\HttpFoundation\FileBag {#61 ▼
#parameters: array:1 [▼
"img" => array:5 [▼
0 => Symfony\.... {#42 ▶}
1 => Symfony\....{#43 ▶}
2 => Symfony\....{#44 ▶}
3 => Symfony\.... {#45 ▶}
4 => Symfony\....{#46 ▶}
]
]
I need to add data to these variables
$img1 = 0
$img2 = 1
$img3 = 2
$img4 = 3
$img5 = 4
img1, 2... is usually indication that arrays should be used.