<?php $images = ['what.jpeg', 'hey.jpg']; foreach ($images as $image) { $lookup[pathinfo($image, PATHINFO_FILENAME)] = $image; } var_export($lookup);
You have javascript disabled. You will not be able to edit any code.