note 27686 deleted from function.empty by aidan

From: Date: Mon, 24 Jan 2005 14:33:50 +0000
Subject: note 27686 deleted from function.empty by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83864@lists.php.net to get a copy of this message
Note Submitter: ckluge at friko3 dot onet dot pl ---- There is at least one case where the empty() function is very useful - it is when you have operations on an array. Imagine that you are storing data in an array, adding and unsetting elements - the quick method of checking if anything is left in an array is simply checking if empty($array) is FALSE (note that key_exists() works only if you check for the specific key)

« previous php.notes (#83864) next »