Re: Testing for an empty array (with null values)

From: Date: Fri, 30 Sep 2005 20:42:02 +0000
Subject: Re: Testing for an empty array (with null values)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223477@lists.php.net to get a copy of this message
Better use is empty(), which supports array as parameter: $test = array(); if(empty($test)) // true { // code... } else // false { } Emil Novak, Slovenia, EU

« previous php.general (#223477) next »