title: is_dir is giving me directories as not directory
body: <pre><code>$dir=array(&quot;EN&quot;,&quot;EN/Products&quot;,&quot;EN/Equipment&quot;);  
  if(is_dir($dir)){  
      foreach($dir as $d):  
          echo (&quot;&lt;b style='color:red'&gt;$d&lt;/b&gt; is a directory&lt;br/&gt;&quot;);  
      endforeach;  
  }  
  else{  
      foreach($dir as $d):
          echo (&quot;&lt;b style='color:red'&gt;$d&lt;/b&gt; is not a directory&lt;br/&gt;&quot;);
      endforeach;
  }
  </code></pre>
  <p>all the array values are Folders having some pages what is happening is that am trying to go with the else as these array values are real folders.</p>
  <p>Here is my output value</p>
  <blockquote>
  <p>EN is not a directory</p>
  <p>EN/Products is not a directory</p>
  <p>EN/Equipment is not a directory</p>
  </blockquote>
  <p>Thanks for helping me out.</p>