Is there a simple way to extract 3 images from an array and store them into 3 different variables? Thanks.
Maybe using list(), extract, foreach etc.
foreach ($_FILES['image']['name'] as $number => $file) {
$filenames[] = $file;
}
foreach($filenames as $filename) {
list($a,$b,$c);
}
Maybe I can just use this $filename[0], $filename[1], $filename[2]. I’ll try an experiment.