Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パスなしで画像の名前を表示したいだけです(../uploadedImages/)
../uploadedImages/
<?php $images = glob("../uploadedImages/[kK]*.{jpg,png,gif,bmp}",GLOB_BRACE); foreach($images as $image) {echo "$image<br>"} ?>
使用するbasename
basename
echo basename($image) . "<br>";