I have 2 php programs which reads two seperate text file in a processed manner, now i want to link these files using a common values, present in the arrays in both the tables. How do i do this? Basically i have the contents of the file in a array manner, and i want to read the array and match it to another array and if there exist a same array element i want it to take the corresponding values and print along with the first array value, again in a table fashion! please help me
Just use the array_intersect function.
http://www.php.net/manual/en/function.array-intersect.php
It’s exactly what you’re looking for.