$dir=array("EN","EN/Products","EN/Equipment");
if(is_dir($dir)){
foreach($dir as $d):
echo ("<b style='color:red'>$d</b> is a directory<br/>");
endforeach;
}
else{
foreach($dir as $d):
echo ("<b style='color:red'>$d</b> is not a directory<br/>");
endforeach;
}
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.
Here is my output value
EN is not a directory
EN/Products is not a directory
EN/Equipment is not a directory
Thanks for helping me out.