I have two arrays and arrayOne has to find the first match for arrayTwos values.
arrayOne ([0] = c [1] = a [2] = b [3] = d [4] = b [5] = c)
and
arrayTwo ([0] = A [1] = B [2] = C)
Because it is the first value in array2 to be displayed in arrayOne.
I am thinking that I can use it for loop and if I can use any of the functions in PHP to run the statements, but to make this simple? array_search
Use the $ keys
Ref:
Comments
Post a Comment