From e6dbe442e1d1da918bd725a82c1ef32b775c5346 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Wed, 23 Dec 2015 11:23:32 +0100 Subject: [PATCH] Added comparison with glob() to the README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 280a4e2..db428be 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,19 @@ Syntax: [API Documentation] +Comparison with glob() +---------------------- + +Compared to PHP's native `glob()` function, this utility supports: + +* `/**/` for matching zero or more directories +* globbing custom stream wrappers, like `myscheme://path/**/*.css` +* matching globs against path strings +* filtering arrays of path strings by a glob + +Since PHP's native `glob()` function is much more efficient, this utility uses +`glob()` internally whenever possible (i.e. when no special feature is used). + Installation ------------