I’m trying to make a function that compares two different length arrays to each other and if they match then some actions are performed. Array1, cell1 compares to array2, cell1, cell2, cellN… Then Array1, cell2 compares to array2, cell1, cell2, cellN…
Something resembling this:
if(array1[$i]==array2[])
{
// Some actions...
}
How can this be implemented?
PHP has
in_arrayfor searching an array for a particular value. So what about