I have this loop:
$dir = 'url/dir/dir/';
$images_array = glob($dir.'*.jpg');
foreach ($images_array as $image) {
$image = str_replace($dir, '', $image);
}
I just want to save the $image variables into a new array. How is this possible?