<?php $arr =array("a" => "banana","apple" => "fruit",'b' => "apple"); If(isset($arr["apple"]) || array_search("apple", $arr)){ Echo "true"; }Else{ Echo "false"; }
You have javascript disabled. You will not be able to edit any code.