In PHP, you can create a file using the fopen() function with 'w' as the mode, which will create the 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.
Add your answer
Loading...

Leave a comment

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