Question:How many ways you can write into a file?
Answer We can write a file using the following method and modes:
Method: fwrite() with fopen() and write mode, file_put_contents(),fputcsv(),fputs(),fputc().
Modes: r+, W, w+,A,a+,X,x+.
+ Report
How many ways you can write into a file?