The file_exists() filesystem function in PHP will let you know if a target file or directory folder exists or not by returning “TRUE” if it is found, and “FALSE” if it is not found. Here is the Example: >
OUTPUT: That file exists.