I just want to display the name of my images, without the path (../uploadedImages/
)
<?php $images = glob("../uploadedImages/[kK]*.{jpg,png,gif,bmp}",GLOB_BRACE);
foreach($images as $image) {echo "$image<br>"} ?>
Use basename
echo basename($image) . "<br>";