说明
bool 
array_key_exists ( mixed key, array search)
     array_key_exists() 在给定的 key
     存在于数组中时返回 TRUE。key
     可以是任何能作为数组索引的值。
    
     
| 例子 1. array_key_exists() 例子 | 
<?php$search_array = array("first" => 1, "second" => 4);
 if (array_key_exists("first", $search_array)) {
 echo "The 'first' element is in the array";
 }
 ?>
 | 
 | 
    注: 
      在 PHP 4.0.6 中本函数名为 key_exists()。
     
     参见 isset(),array_keys()
     和 in_array()。