note 90878 deleted from function.is-dir by danbrown

From: Date: Thu, 14 May 2009 12:39:49 +0000
Subject: note 90878 deleted from function.is-dir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154591@lists.php.net to get a copy of this message
Note Submitter: singh206 at gmail dot com ---- for the ever-ongoing 'is that directory empty' thread. public static function is_empty($dir) { return is_dir($dir) ? (($files = @scandir($dir)) && count($files) < 3) : false; }

« previous php.notes (#154591) next »