PHP Append to File
You can append data into file by using a or a+ mode in fopen() function. Let's see a simple example that appends data into data.txt file.
Let's see the data of file first.
welcome to php file write
PHP Append to File - fwrite()
The PHP fwrite() function is used to write and append data into file.
welcome to php file write this is additional text appending data
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week