SyntaxFix
Write A Post
Hire A Developer
Questions
$array1 = "Orange"; $array2 = array("Apple","Grapes","Orange","Pineapple"); if(in_array($array1,$array2)){ echo $array1.' exists in array2'; }else{ echo $array1.'does not exists in array2'; }