Check in php if directory contains different file types

Standomogat

New Member
what is the best way, to check if a given directory contains a *.png a *.mp4 and so on?I only want a true getting returned, if all these filetypes are inside the directory.This is my current code, which does not work. if I use only one filetype it works, but does not return a false:\[code\]var_dump(glob($video_dir.'*.txt,.jpg', GLOB_BRACE));\[/code\]Thanks
 
Back
Top