I have two array: 

```
    array_A= [6, 8, 3, 3] // this array has two same minimum number.(3, 3 for example)
    array_B= [4, 5, 6, 7] // this array has not same numbers always.

```

I want to get the index of the minimum number of array\_A, while array\_A has two same min then I want to check these two number with array\_B in the same place index, (for example first 3 by: 6 and second 3 by: 7) and as the minimum of (6 , 7) is 6 then give us the true index which is for first 3 in array\_A.

I try many times by min function in php but its a big problem. this problem has to be general.
thanks.