<?php 
 
Function array_ikey_exists($KEY, $A)  { if (!is_array($A) or !is_string($KEY) and !is_numeric($KEY))  return FALSE; 
    $KEY=strtolower((string)$KEY);  //allowing numeric keys gives this function universal flexibility 
    foreach ($A as $key => $d)  {if ($KEY===strtolower((string)$key))  return $key;} 
    return FALSE;  } 
 
?>
 
 |