note 89131 deleted from function.glob by danbrown
| From: | danbrown@php.net | Date: | Mon, 23 Feb 2009 19:02:05 +0000 |
| Subject: | note 89131 deleted from function.glob by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151027@lists.php.net to get a copy of this message | ||
Note Submitter: LiTuS
----
function GlobOnlyFiles($patro)
{
$total = glob($patro, GLOB_NOSORT);
$dirs = glob($patro, GLOB_ONLYDIR);
$files = array_diff($total, $dirs);
return $files;
}