Php - Find number of jpg files in a directory, Find total number of image files

Find number of jpg files in a directory

Find number of image files in a directory using php,
 $directory = "directory name";
 if (glob($directory . "*.jpg") != false)
 {
 $filecount = count(glob($directory . "*.jpg"));
 echo $filecount;
 } 
The above script will help you to find the count or total number of jpg files in a directory

The topic on Php - Find number of jpg files in a directory is posted by - Math

Hope you have enjoyed, Php - Find number of jpg files in a directoryThanks for your time

Tech Bluff