note 95090 added to function.glob
| From: | haro at osu1 dot php dot net | Date: | Sat, 12 Dec 2009 23:59:50 +0000 |
| Subject: | note 95090 added to function.glob | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163897@lists.php.net to get a copy of this message | ||
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); ?>
----
Server IP: 69.147.83.197
Probable Submitter: 96.3.101.219
----
Manual Page -- http://www.php.net/manual/en/function.glob.php
Edit -- https://master.php.net/note/edit/95090
Del: integrated -- https://master.php.net/note/delete/95090/integrated
Del: useless -- https://master.php.net/note/delete/95090/useless
Del: bad code -- https://master.php.net/note/delete/95090/bad+code
Del: spam -- https://master.php.net/note/delete/95090/spam
Del: non-english -- https://master.php.net/note/delete/95090/non-english
Del: in docs -- https://master.php.net/note/delete/95090/in+docs
Del: other reasons-- https://master.php.net/note/delete/95090
Reject -- https://master.php.net/note/reject/95090
Search -- https://master.php.net/manage/user-notes.php