title: PHP Get all subdirectories of a given directory
body: <p>How can I get all sub-directories of a given directory without files, <code>.</code>(current directory) or <code>..</code>(parent directory)
  and then use each directory in a function?</p>