Hi, This may be a very stupid question but I just don't know how to do it and I'm kinda new to php.
I have a directory structure that looks like this:
Main_Directory
Sub_dir_1
Sub_dir_2
Sub_dir_3
~~Sub_dir_4
Sub_dir_5
~~Sub_dir_6
I'm trying to run a function that will return only the subdirectories inside the Main_Directory that contain the ~~ prefix. in this case subdirectories 3,4 and 6.
Is there any php function that will return all the files in a specific directory and then maybe I can run a regular expression to only match the directories that have that prefix???
Or any other ideas??? thanks...