php: easy way to compare array

Joined
12 Feb 2006
Posts
17,643
Location
Surrey
is there a better way to compare a string against an array other then using foreach...? always felt that although relatively simple this could still be done a lot easier but have never come across another way.
 
Back
Top Bottom