Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$a=array("Volvo"=>"XC90","BMW"=>"X5");
if (array_key_exists("Volvo",$a))
  {
  echo "Key exists!";
  }
else
  {
  echo "Key does not exist!";
  }
?>
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_array_key_exists by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:50:52 GMT -->
</html>
×

Report a Problem: