note 95090 rejected from function.glob by vrana
| From: | vrana@php.net | Date: | Tue, 22 Dec 2009 16:10:54 +0000 |
| Subject: | note 95090 rejected from function.glob by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164243@lists.php.net to get a copy of this message | ||
Note Submitter: haro
----
To recursively list all directories you can use (works on Windows too):
<?php glob('**/*'); ?>
However, it won't include files in the current working directory. To include those files in
addition to recursing all directories you can use:
<?php glob('{*,**/*}', GLOB_BRACE); ?>