For clarity purpose Lets assume i have an array like this
Array
(
[0] => 1234567
[1] => 1
[2] => 189818006457
[3] => 3
[4] => 10069992244808
[5] => 2
[6] => 100699922448
[7] => 5
[8] => 123454b
[9] => 6
[10] => 12345674b234
[11] => 2
[12] => 10
[13] => 3
[14] => 100699922
[15] => 1
[16] => 1006999
[17] => 30
[18] => 9
[19] => 36
[20] => 34
[21] => 45
[22] => 567
[23] => 3
[24] => 44
[25] => 3
[26] => 6788
[27] => 15
[28] => 189818006457371
[29] => 17
[30] => 123RT454b
[31] => 5
)
And i want to compare it with the array below. So that when the values of the sub-array1 below matches the values of the array above, the system will print the value preceding the matched values in the single dimensional array above in a group. It will also check if the values in sub-array2 below matches the values of the array above, the system will print the value preceding the matched values in the single dimensional array above in another group-2 and so on.
Array
(
[0] => Array
(
[0] => 1
[1] => 3
[2] => 2
[3] => 5
[4] => 6
[5] => 2
[6] => 3
[7] => 1
[8] => 3
)
[2] => Array
(
[0] => 30
[1] => 36
[2] => 45
)
[1] => Array
(
[0] => 15
[1] => 17
)
)
Sorry am new to php but i have to do the project. Thanks