note 74708 added to function.DirectoryIterator-isFile

From: Date: Tue, 24 Apr 2007 15:18:27 +0000
Subject: note 74708 added to function.DirectoryIterator-isFile
Groups: php.notes 
Request: Send a blank email to php-notes+get-125834@lists.php.net to get a copy of this message
shows all .jpg files in the current directory but how does the DirectoryIterator sort the output!? $dir=new DirectoryIterator("./"); foreach ($dir as $file) { if ($dir->isDot()) {continue;} //removes . and .. if (strripos($file,".jpg")==true) { echo $file . "<br>\n"; } } ---- Server IP: 81.223.48.75 Probable Submitter: 143.205.176.60 ---- Manual Page -- http://www.php.net/manual/en/function.DirectoryIterator-isFile.php Edit -- https://master.php.net/note/edit/74708 Del: integrated -- https://master.php.net/note/delete/74708/integrated Del: useless -- https://master.php.net/note/delete/74708/useless Del: bad code -- https://master.php.net/note/delete/74708/bad+code Del: spam -- https://master.php.net/note/delete/74708/spam Del: non-english -- https://master.php.net/note/delete/74708/non-english Del: in docs -- https://master.php.net/note/delete/74708/in+docs Del: other reasons-- https://master.php.net/note/delete/74708 Reject -- https://master.php.net/note/reject/74708 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125834) next »