note 40075 added to ref.dir

From: Date: Fri, 20 Feb 2004 21:28:04 +0000
Subject: note 40075 added to ref.dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-65460@lists.php.net to get a copy of this message
Just to add my own tip on the above recursive_dirlist()... I would suggest to make the last few lines: sort(&$getDirList_alldirs); sort(&$getDirList_allfiles); $retval['dirs'] = &$getDirList_alldirs; $retval['files'] = &$getDirList_allfiles; otherwise your dirlisting may not be exactly the way you want, especially if you are operating on files in these dirs, and order may be a factor (as it is in my project ;-) ) ---- Manual Page -- http://www.php.net/manual/en/ref.dir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40075 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40075&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40075&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65460) next »