Function can see variable

Just iterate through $_FILES[‘images’]:

foreach ($_FILES['images'] as $image) {
   // ... all your loop code here ...
}

or make an assignment before loop if you don’t want to change it:

$images = $_FILES['images'];