Which of the following PHP functions checks if a file or directory exists?

  • file_exists()
  • include_once()
  • require_once()
  • class_exists()
The file_exists() function in PHP is used to determine if a file or directory exists. It returns a boolean value, true if the file or directory exists and false if it doesn't.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *