PHP - File Handling
Which of the following is the correct syntax to open a file for writing in PHP?
'w' opens a file for writing and truncates it if it exists.fopen('file.txt', 'w') is the correct syntax to open for writing.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions