Extract images from array and store in variables

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) {

Maybe I can just use this $filename[0], $filename[1], $filename[2]. I’ll try an experiment.

Thanks I will check that out.

I seem to have figured it out doing this.

$filenames[0], $filenames[1], $filenames[2].

Yes, you can use list. Read the manual, and you’ll see how to use it :slight_smile: