note 44818 deleted from function.scandir by aidan

From: Date: Sat, 11 Sep 2004 03:21:43 +0000
Subject: note 44818 deleted from function.scandir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76434@lists.php.net to get a copy of this message
Note Submitter: Ed user at example dot com ---- <? //Only for version < PHP5 function scandir($dir,$p_sort=0){ $dh = opendir($dir); while (false !== ($filename = readdir($dh))) {$files[] = $filename;} if ($p_sort==0) { return sort($files); }else{ return rsort($files); }} ?>

« previous php.notes (#76434) next »