Php - GLOB_ONLYDIR function, List all the base directories in linux os
<?php $directories = glob($somePath . '/*' , GLOB_ONLYDIR); print_r($directories); ?>OUTPUT:
Array (  => /bin  => /boot  => /cgroup  => /dev  => /etc .... )
The above is a sample output. The above code is used to print the directories using php code.
The topic on Php - GLOB_ONLYDIR function is posted by - Maha
Hope you have enjoyed, Php - GLOB_ONLYDIR functionThanks for your time