Appending the content from two different text files into a single text file.
$file11 = fopen("sample1.txt", 'a+'); $file2 = file_get_contents("sample2.txt"); fwrite($file1, $file2);
Output is based on user Input file values. Ex: sample1.txt contains Hello sample1.txt contains Hi Result:Hello Hi
Comments :