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+.

 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 904
How many ways you can write into a file?

Copyright © 2024. Powered by Intellect Software Ltd