I have to find the elements which exist in multiple arrays,
For example, I have 4 arrays
Array1 = {P1,P2,P3,P4}
Array2 = {P1,P2,P3}
Array3 = {P1}
Array4 = {P2,P3}
I have to find elements which exist in all the arrays i.e for the above example the elements im expecting is {P1,P2} or {P1,P3}
How can i do this using PHP array functions?
Please help.