Created
May 7, 2015 16:05
-
-
Save 9ete/73167bdb3c4680a9d2b8 to your computer and use it in GitHub Desktop.
Output all directories w/in current directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
foreach ($dirs as $dir) { | |
echo $dir; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment