PHP Compare Parts of Arrays?

Sigher

New member
Hello all.

Alright i am building a application that requires me to compare to arrays. But i cant think of a way to do it.

alright ill give an example of what im talking about

$Array1=array(
[0] = something
[1] = something else
)
$Array2 =array(
[0] = not something
[1] = something
}

now i want to see if say $array2 [1] is in array1 and if it is do something

Any help would be a wonderful thing.
 
Back
Top