note 87491 added to function.array-key-exists

From: Date: Sun, 07 Dec 2008 08:07:40 +0000
Subject: note 87491 added to function.array-key-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-147779@lists.php.net to get a copy of this message
It is important to realise that: isset($array ['index']) Does not act the same as: array_key_exists('index', $array) This is because if an array value is set to NULL $array['index'] = NULL; Then isset will return FALSE and array_key_exists will return TRUE. It is important to realise this! ---- Server IP: 87.124.35.190 Probable Submitter: 87.194.157.237 ---- Manual Page -- http://www.php.net/manual/en/function.array-key-exists.php Edit -- https://master.php.net/note/edit/87491 Del: integrated -- https://master.php.net/note/delete/87491/integrated Del: useless -- https://master.php.net/note/delete/87491/useless Del: bad code -- https://master.php.net/note/delete/87491/bad+code Del: spam -- https://master.php.net/note/delete/87491/spam Del: non-english -- https://master.php.net/note/delete/87491/non-english Del: in docs -- https://master.php.net/note/delete/87491/in+docs Del: other reasons-- https://master.php.net/note/delete/87491 Reject -- https://master.php.net/note/reject/87491 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147779) next »