PHP fwrite() function is used for writing contents to a file. It write to the file stream pointed to by handle which is created by fopen() function. Syntax of the PHP fwrite function : fwrite( file handler, string to write , length ) Length argument is optional , and if we specify a length...