File: glob.php
Source Location: /PHP_Compat-1.6.0a2/Compat/Function/glob.php
Classes:
Page Details:
GLOB_BRACE [line 21]
GLOB_ERR [line 6]
GLOB_MARK [line 9]
GLOB_NOCHECK [line 15]
GLOB_NOESCAPE [line 18]
GLOB_NOSORT [line 12]
GLOB_ONLYDIR [line 24]
glob [line 364]
void glob(
$pattern, [ $flags = 0])
Parameters
$pattern
$flags
php_compat_glob [line 40]
void php_compat_glob(
$pattern, [ $flags = 0])
Replace glob()
- Author: Arpad Ray <arpad@php.net>
- Version: $Revision: 1.7 $
- Copyright: 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
- Link: http://php.net/glob
- Since: PHP 4.3.0
- License: LGPL
Parameters
$pattern
$flags
php_compat_glob_brace_helper [line 264]
string php_compat_glob_brace_helper(
string $brace, int $flags)
Converts glob braces
- Return: a PCRE subpattern of alternatives
Parameters
string
$brace
the contents of the braces to convert
int
$flags
the flags passed to glob()
php_compat_glob_brace_nosort_helper [line 350]
void php_compat_glob_brace_nosort_helper(
$a, $b)
Callback sort function for (GLOB_BRACE | GLOB_NOSORT)
Receives the same arguments php_compat_glob_brace_sort_helper()
Parameters
$a
$b
php_compat_glob_brace_sort_helper [line 337]
void php_compat_glob_brace_sort_helper(
$a, $b)
Callback sort function for GLOB_BRACE
Each argument should be an array where the first element is the file path, and the second is its rank. The rank is the number of alternatives between this match and the beginning of the brace.
Parameters
$a
$b
php_compat_glob_charclass_helper [line 283]
string php_compat_glob_charclass_helper(
string $class, int $flags)
Converts glob character classes
- Return: a PCRE character class
Parameters
string
$class
the contents of the class to convert
int
$flags
the flags passed to glob()
php_compat_glob_convert_helper [line 201]
string php_compat_glob_convert_helper(
string $input, int $flags)
Converts a section of a glob pattern to a PCRE pattern
- Return: the escaped input
Parameters
string
$input
the pattern to convert
int
$flags
the flags passed to glob()
php_compat_glob_nosort_helper [line 302]
void php_compat_glob_nosort_helper(
$a, $b)
Callback sort function for GLOB_NOSORT
Sorts first by the base name, then in reverse by the extension
Parameters
$a
$b
php_compat_glob_scan_helper [line 145]
mixed php_compat_glob_scan_helper(
string $path, int $flags, [bool $recurse = false])
Scans a path
- Return: an array of files in the given path where the key is the path, and the value is 1 if the file is a directory, 0 if it isn't. Returns false on unrecoverable errors, or all errors when GLOB_ERR is on.
Parameters
string
$path
the path to scan
int
$flags
the flags passed to glob()
bool
$recurse
true to scan recursively
Documentation generated on 2019年3月11日 15:26:35 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.