note 101094 added to function.scandir

From: Date: Thu, 25 Nov 2010 20:33:37 +0000
Subject: note 101094 added to function.scandir
Groups: php.notes 
Request: Send a blank email to php-notes+get-174359@lists.php.net to get a copy of this message
Note that scandir() will enforce alphanumerical sorting on the array it returns. If you wish to reduce CPU overhead by avoiding the sorting, or if you wish to obtain "natural filesystem order" - that is, the order in which the files are found while traversing the filesystem (usually the order in which they were written to the disk) - you need to go back to the PHP4 equivalent of opendir() + readdir(). ---- Server IP: 69.147.83.197 Probable Submitter: 83.227.160.33 ---- Manual Page -- http://www.php.net/manual/en/function.scandir.php Edit -- https://master.php.net/note/edit/101094 Del: integrated -- https://master.php.net/note/delete/101094/integrated Del: useless -- https://master.php.net/note/delete/101094/useless Del: bad code -- https://master.php.net/note/delete/101094/bad+code Del: spam -- https://master.php.net/note/delete/101094/spam Del: non-english -- https://master.php.net/note/delete/101094/non-english Del: in docs -- https://master.php.net/note/delete/101094/in+docs Del: other reasons-- https://master.php.net/note/delete/101094 Reject -- https://master.php.net/note/reject/101094 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174359) next »