note 95002 deleted from function.glob by thiago
| From: | thiago@php.net | Date: | Tue, 08 Dec 2009 15:24:25 +0000 |
| Subject: | note 95002 deleted from function.glob by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163717@lists.php.net to get a copy of this message | ||
Note Submitter: muppe7 at nospam dot gmail dot com
----
If you're wondering why glob() is not returning any result, you might find this article of a
belgium developer interesting:
http://seld.be/notes/major-glob-fail
[quote]
Working on some personal project that lists a bunch of stuff on my hard drive, I found out that
directories that contain square brackets (those []) don't return any results for the simple
reason that glob reads [stuff] as a character class, just like in regular expressions.
[/quote]
P.S.: I am not the author of the article, but I thought this helpful information should be placed
here.