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.
Loading...
Related Quiz
- In PHP, $GLOBALS is a superglobal array that contains references to all ______ that are currently defined in the global scope of the script.
- PHP can be embedded within HTML code.
- You need to filter and validate multiple inputs in your PHP script. How would you do this?
- In a switch-case structure, the ________ keyword is used to specify the default action when no case matches.
- Which predefined PHP function is used to find the position of the first occurrence of a substring?