note 34358 deleted from function.empty by torben

From: Date: Thu, 24 Jul 2003 20:17:43 +0000
Subject: note 34358 deleted from function.empty by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52588@lists.php.net to get a copy of this message
Note Submitter: Håkon ---- If you want to check if your array is empty, you can't use the function empty(). You have to use this method: if(count($array) == 0) { echo 'The array is empty!'; }

« previous php.notes (#52588) next »