From aba468e56f7907b4f160049d2f64af06bcb3e2ac Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Sat, 18 May 2002 14:08:25 +0000 Subject: [PATCH] - Preliminary documentation for glob(). # Far from finished, volunteers are welcome: # - Document tll he flags # - Give more examples # - Describe what the patterns are really git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@82640 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions.xml | 1 + reference/filesystem/functions/glob.xml | 83 +++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 reference/filesystem/functions/glob.xml diff --git a/reference/filesystem/functions.xml b/reference/filesystem/functions.xml index a88e00346f..b396af14d1 100644 --- a/reference/filesystem/functions.xml +++ b/reference/filesystem/functions.xml @@ -41,6 +41,7 @@ &reference.filesystem.functions.ftell; &reference.filesystem.functions.ftruncate; &reference.filesystem.functions.fwrite; +&reference.filesystem.functions.glob; &reference.filesystem.functions.is-dir; &reference.filesystem.functions.is-executable; &reference.filesystem.functions.is-file; diff --git a/reference/filesystem/functions/glob.xml b/reference/filesystem/functions/glob.xml new file mode 100644 index 0000000000..f3f62b470e --- /dev/null +++ b/reference/filesystem/functions/glob.xml @@ -0,0 +1,83 @@ + + + + + glob + Find pathnames matching a pattern + + + Description + + arrayglob + stringpattern + intflags + + + The glob function searches for all the pathnames + matching pattern according to the rules used by + the shell. No tilde expansion or parameter substitution is done. + + + Returns an array containing the matched files/directories or &false; on + error. + + + + This function is disabled in safe mode. + + + + + This function is not available on the Windows platform. + + + + + Convenient way how <function>glob</function> can replace + <function>opendir</function> and friends. + + + + + + This could result in the following output: + + +funclist.txt size 44686 +funcsummary.txt size 267625 +quickref.txt size 137820 + + + + See also opendir, + readdir and + closedir. + + + + +