note 81735 deleted from function.scandir by felipe
| From: | felipe@php.net | Date: | Fri, 29 Aug 2008 23:28:08 +0000 |
| Subject: | note 81735 deleted from function.scandir by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144007@lists.php.net to get a copy of this message | ||
Note Submitter: Mechkurt
----
foreach(scandir('.') as $f) {
if ($f[0]=='.') continue;
//Do your dirty work code monkey
}
Actualy if you do that, you could skip files that do start with a dot (like .htaccess for
example)...
File name comparaison with '.' and '..' could seem dirty but for me it does the
job ;-)