PHP: Check if directory exists

PHP

I'm looking for a simply solution to check if a directory on the filesystem exists in PHP. I don't if I should use is_dir() or file_exists(). Could someone guide me please? 

Programming Question created: 2020-11-16 09:20 monkeyCode