Q. Which PHP function checks if a path is a directory?
β
Correct Answer: (A)
is_dir()
Explanation: is_dir() checks whether the path is a directory.