title: How do i list only the subdirectories of a specified directory?
body: <p>Please in php how do get a list of sub-directories in a specified directory without showing the parent directory? Already, i have something like this:</p>
  
  <pre><code>$subdirs = array_filter(glob('mydir/*'), 'is_dir');
  foreach($subdirs as $s){
   echo $s.'&lt;br&gt;';
  }
  </code></pre>
  
  <p>This is what i have as sample output:
  mydir/accounts,
  mydir/payment</p>
  
  <p>I only want this as output:
  accounts,
  payment</p>
  
  <p>Please, how do i go about this?</p>