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>";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With