is_dir

It checks whether the filename is a directory

Example

<?php

echo is_dir(‘test.txt’)?”Yes”:”No”;

?>

Output

No

Share