note 27552 added to function.filetype

From: Date: Tue, 10 Dec 2002 21:51:30 +0000
Subject: note 27552 added to function.filetype
Groups: php.notes 
Request: Send a blank email to php-notes+get-40673@lists.php.net to get a copy of this message
Quick script to put all files into an array separated by type: // '.' being the current dir, change if you wish $dh = opendir('.'); while ($file = readdir($dh)) { $files[filetype($file)][] = $file; } print_r($files); -- http://www.php.net/manual/en/function.filetype.php http://master.php.net/manage/user-notes.php?action=edit+27552 http://master.php.net/manage/user-notes.php?action=delete+27552 http://master.php.net/manage/user-notes.php?action=reject+27552

« previous php.notes (#40673) next »