note 92177 deleted from function.scandir by danbrown

From: Date: Mon, 13 Jul 2009 16:38:26 +0000
Subject: note 92177 deleted from function.scandir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158242@lists.php.net to get a copy of this message
Note Submitter: andreas_ebner at hotmail dot com ---- Same functionality for PHP4 <? function php4_scandir($dir, $sorting_order = 0) { $dirArray = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { array_push($dirArray,basename($file)); } closedir($handle); } if ($sorting_order != 0) $dirArray = array_reverse($dirArray); return $dirArray; } ?>

« previous php.notes (#158242) next »