Source Code:
(back to article)
<?php $path = '/path/to/directory'; if (is_dir($path)) { echo 'The path is a directory'; } else { echo 'The path is not a directory'; }
Result:
Report an issue