In PHP, the fopen() function with 'w' as the mode will create a file if it doesn't exist and open it for ______.
- reading
- writing
- appending
- deleting
In PHP, using the 'w' mode with the fopen() function allows you to create a file if it doesn't exist and open it for writing. This mode truncates the file if it already exists, so caution should be exercised.
Loading...
Related Quiz
- The max() function in PHP returns the ______ value from a list of numbers.
- Which of the following are common uses of for loops in PHP?
- What is an array in PHP?
- If a required field is left empty in a PHP form, you can display an error message by ______.
- What is the purpose of the unset() function in PHP?