|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-08-28 12:25 UTC] kalowsky@php.net
  [2003-10-03 08:35 UTC] mvivino at avaya dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
Hello, this code : <?php $a = array(1=>NULL); var_dump($a); var_dump(isset($a[1])); var_dump(array_key_exists(1,$a)); ?> Produces this : array(1) { [1]=> NULL } bool(false) bool(true) So for first time I see difference in the use of isset() and array_key_exists(). Many users (including me till 1 one ago) believe that they are equivalent and because isset() is shorter it is mostly used. Should be there any notice in the docs about this issue? This code is correct and the bug report was inspired by note to do this by jmcastagnetto. Regards, Andrey