Click to See Complete Forum and Search --> : Array containing X


The Anime King
09-18-2005, 05:37 AM
What is the quickest way to ask:
if($x is in $array){function();}

Greetz tAK

bokeh
09-18-2005, 06:25 AM
if(in_array($x, $array)){
//do stuff
}