From 572fa58ab8936bdc7d63b7330de7bb2f1978b3d5 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Sat, 16 Nov 2002 01:50:30 +0000 Subject: [PATCH] Marking constants with , WS, and compacted the example. Also, removed uneeded john@php.net comment. Also, this function is available as of 4.3.0 so no need to specific per constant. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@104399 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/glob.xml | 65 ++++++++++++++++--------- 1 file changed, 43 insertions(+), 22 deletions(-) diff --git a/reference/filesystem/functions/glob.xml b/reference/filesystem/functions/glob.xml index 7384414a7e..d6f2b8c575 100644 --- a/reference/filesystem/functions/glob.xml +++ b/reference/filesystem/functions/glob.xml @@ -1,5 +1,5 @@ - + glob @@ -21,50 +21,71 @@ Returns an array containing the matched files/directories or &false; on error. - + Valid flags: - GLOB_MARK - Adds a slash to each item returned + + GLOB_MARK - Adds a slash to each item returned + - GLOB_NOSORT - Return files as they appear in the directory (no sorting) + + GLOB_NOSORT - Return files as they appear in the + directory (no sorting) + - GLOB_NOCHECK - Return the search pattern if no files matching it were found + + GLOB_NOCHECK - Return the search pattern if no + files matching it were found + - GLOB_NOESCAPE - Backslashes do not quote metacharacters + + GLOB_NOESCAPE - Backslashes do not quote + metacharacters + - GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c' (PHP >= 4.3.0) + + GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', + or 'c' + - GLOB_ONLYDIR - Return only directory entries which match the pattern (PHP >= 4.3.0) + + GLOB_ONLYDIR - Return only directory entries + which match the pattern + - - - Convenient way how <function>glob</function> can replace - <function>opendir</function> and friends. - - + + + + Convenient way how <function>glob</function> can replace + <function>opendir</function> and friends. + + - - - This could result in the following output: - - + +/* Output will look something like: + funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820 - - + +*/ +?> +]]> + + + See also opendir, readdir and