View Single Post
  #1   IP: 153.99.39.110
Old 2016-08-16, 12:53 AM
Kealia Kealia is offline
初级会员
 
Join Date: 2013-01-28
Posts: 1
Kealia 现在声名狼藉
Default How to get only images using scandir in PHP?

Is there any way to get only images with extensions jpeg, png, gif etc while using
Code:
$dir    = '/tmp';
$files1 = scandir($dir);
Reply With Quote