Compare two text file using php

By | May 13, 2015

Step1: Create two files named file1.txt and file2.txt with the following contents

Apple
Orange
Mango
Pineapple
Jackfruit

Step2: use the below php file to compare the two text file