PHP 8.1.24 Released!

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

SEEK_SET (int)
SEEK_CUR (int)
SEEK_END (int)
LOCK_SH (int)
LOCK_EX (int)
LOCK_UN (int)
LOCK_NB (int)
GLOB_BRACE (int)
GLOB_ONLYDIR (int)
GLOB_MARK (int)
GLOB_NOSORT (int)
GLOB_NOCHECK (int)
GLOB_NOESCAPE (int)
GLOB_AVAILABLE_FLAGS (int)
PATHINFO_DIRNAME (int)
PATHINFO_BASENAME (int)
PATHINFO_EXTENSION (int)
PATHINFO_FILENAME (int)
FILE_USE_INCLUDE_PATH (int)
Search for filename in include_path.
FILE_NO_DEFAULT_CONTEXT (int)
FILE_APPEND (int)
Append content to existing file.
FILE_IGNORE_NEW_LINES (int)
Strip EOL characters.
FILE_SKIP_EMPTY_LINES (int)
Skip empty lines.
FILE_BINARY (int)

Binary mode.

Note:

This constant has no effect, and is only available for forward compatibility.

FILE_TEXT (int)

Text mode.

Note:

This constant has no effect, and is only available for forward compatibility.

INI_SCANNER_NORMAL (int)
Normal INI scanner mode.
INI_SCANNER_RAW (int)
Raw INI scanner mode.
INI_SCANNER_TYPED (int)
Typed INI scanner mode.
FNM_NOESCAPE (int)
Disable backslash escaping.
FNM_PATHNAME (int)
Slash in string only matches slash in the given pattern.
FNM_PERIOD (int)
Leading period in string must be exactly matched by period in the given pattern.
FNM_CASEFOLD (int)
Caseless match. Part of the GNU extension.
add a note

User Contributed Notes 1 note

To Top