is_dir

PHP 4, PHP 5, PHP 7, PHP 8
is_dir - Tells whether the filename is a directory
Manual
Code Examples

Example #1 is_dir example

Result: bool(false) bool(false) bool(true)
PHP Version: