php in_array key
<?php
// PHP function to illustrate the use
// of array_key_exists()
function Exists($index, $array)
{
if (array_key_exists($index, $array)){
echo "Found the Key";
}
else{
echo "Key not Found";
}
}
$array = array("ram"=>25, "krishna"=>10,
"aakash"=>20, "gaurav");
$index = "aakash";
print_r(Exists($index, $array));
?>