How to get all the sub-directories of a given directory in PHP?
When you read the content of any specified directory with PHP functions such as scandir() or readdir(), they will return both files and directories. How does one get just the child directories of a given directory in PHP? The obvious solution is the is_dir() function that checks if a filename is a directory: $all = …
How to get all the sub-directories of a given directory in PHP? Read More »