note 6770 deleted from function.readdir by philip
| From: | philip@php.net | Date: | Fri, 08 Nov 2002 01:52:21 +0000 |
| Subject: | note 6770 deleted from function.readdir by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39112@lists.php.net to get a copy of this message | ||
To sort out files, just use the same mechanism in the example that stripped out the "."
and ".." files.
so, if you wanted to show only files ending in ".foo", you would do something like:
if ($file != "." && $file != ".." &&
ereg(".foo",$file))