<?php
$ar
=array("d"=>"daisy","m"=>"marigold","r"=>"rose","l"=>"lotus");$b=array_key_exists("r",$ar);
if
($b){echo
"r is key in the array";}
else
echo
"r is not the key in the array";echo
"<br>";$b1
=array_key_exists("a",$ar);if
($b1){echo
"a is key in the array";}
else {
echo
"a is not the key in the array";}
?>
Output r is key in the array a is not the key in the array
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.