note 68625 deleted from ref.filesystem by felipe

From: Date: Mon, 10 Dec 2007 18:01:18 +0000
Subject: note 68625 deleted from ref.filesystem by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133236@lists.php.net to get a copy of this message
Note Submitter: hello at nospam4methanks dot com ---- <?php // faster "fcountext" function function extCount ($dir) { if (is_dir ($dir)) { $g = glob ($dir . '/*.*'); foreach ($g as $v) { $this = pathinfo($v); $e[] = $this['extension']; } // return extension count return count(array_unique($e)); // alternately, you could return an array of the extensions found - return array_values(array_unique($e)); } // otherwise return false; } ?>

« previous php.notes (#133236) next »