📜  php 键存在 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.547000             🧑  作者: Mango

代码示例4
PHP function key_exists($key, array $array) bool
------------------------------------------------
Checks if the given key or index exists in the array. The name of this function is array_key_exists() in PHP > 4.0.6.

Parameters:
int|string--$key--Value to check.
array--$array--An array with keys to check.
  
Returns:true on success or false on failure.