/ Published in: PHP

Given a start path will return an array of all subdirectories excluding files
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getAllSubdirectories($base) { return $dir_array; } if ($file == '.' || $file == '..') continue; $dir_array[] = $file; } else { } } return $dir_array; } }
Comments
