note 107626 deleted from language.types.null by tularis

From: Date: Wed, 22 Feb 2012 21:06:33 +0000
Subject: note 107626 deleted from language.types.null by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186299@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- When you work with arrays, there is a difference between setting an element to NULL and unsetting it: <? $arr = Array(); $arr['IVO'] = 1; $arr['NIKI'] = '2'; $arr['IVO'] = NULL; var_dump($arr); // shows 2 elements unset($arr['IVO']); var_dump($arr); // shows 1 element ?>

« previous php.notes (#186299) next »