<html>
<body>
$a=array("Volvo","BMW");
if (array_key_exists(0,$a))
{
echo "Key exists!";
}
else
{
echo "Key does not exist!";
}
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_array_key_exists3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:40:33 GMT -->
</html>