我使用以下代码获取目录中的图像列表:
$files = scandir($imagepath);
但$files也包括隐藏文件.我该如何排除它们?
$files
php scandir hidden-files
hidden-files ×1
php ×1
scandir ×1