note 68771 deleted from function.scandir by felipe

From: Date: Fri, 29 Aug 2008 23:24:57 +0000
Subject: note 68771 deleted from function.scandir by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144000@lists.php.net to get a copy of this message
Note Submitter: at_he at hotma1l dot com ---- you can separate DIRS from FILES in two arrays with a little script like :D ... <?php $files = scandir ( $dir ) ; foreach( $files as $pos => $file ) { if( is_dir( $file ) ) { $dirs[] = $file ; unset( $files[$pos] ) ; } } ?>

« previous php.notes (#144000) next »