fork(1) download
  1. <?php
  2.  
  3. $arr = array("test" => 1, "some" => 2);
  4. $key = 'test';
  5.  
  6. echo array_key_exists($key, $arr) ? "ключ $key есть" : 'ключа нет';
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
ключ test есть