預定義常量
下列常量由此擴充套件定義,且僅在此擴充套件編譯入 PHP 或在執行時動態載入時可用。
-
SEEK_SET
(integer) -
SEEK_CUR
(integer) -
SEEK_END
(integer) -
LOCK_SH
(integer) -
LOCK_EX
(integer) -
LOCK_UN
(integer) -
LOCK_NB
(integer) -
GLOB_BRACE
(integer) -
GLOB_ONLYDIR
(integer) -
GLOB_MARK
(integer) -
GLOB_NOSORT
(integer) -
GLOB_NOCHECK
(integer) -
GLOB_NOESCAPE
(integer) -
GLOB_AVAILABLE_FLAGS
(integer) -
PATHINFO_DIRNAME
(integer) -
PATHINFO_BASENAME
(integer) -
PATHINFO_EXTENSION
(integer) -
PATHINFO_FILENAME
(integer) - 自 PHP 5.2.0 起
-
FILE_USE_INCLUDE_PATH
(integer) -
在 include_path 里搜索
filename
。 -
FILE_NO_DEFAULT_CONTEXT
(integer) -
FILE_APPEND
(integer) - 為存在的檔案新增內容。
-
FILE_IGNORE_NEW_LINES
(integer) - 過濾換行(EOL)字元。
-
FILE_SKIP_EMPTY_LINES
(integer) - 過濾空行。
-
FILE_BINARY
(integer) -
二進制模式(自 PHP 5.2.7 起)。
注意:
此常量無效,僅僅用於向後相容(
forward compatibility
)。 -
FILE_TEXT
(integer) -
文字模式 (自 PHP 5.2.7 起)。
注意:
此常量無效,僅僅用於向後相容(
forward compatibility
)。 -
INI_SCANNER_NORMAL
(integer) - 普通的 INI 掃瞄模式(自 PHP 5.3 起)。
-
INI_SCANNER_RAW
(integer) - 原始(Raw) INI 掃瞄模式(自 PHP 5.3 起)。
-
INI_SCANNER_TYPED
(integer) - Typed INI 掃瞄模式(自 PHP 5.5.6.1 起)。
-
FNM_NOESCAPE
(integer) - 禁用反斜線轉義
-
FNM_PATHNAME
(integer) - 字串里的斜槓只匹配指定模式里的斜槓。
-
FNM_PERIOD
(integer) - 字串里的起始點號必須完全匹配指定模式里的點號。
-
FNM_CASEFOLD
(integer) - 大小寫不敏感的匹配,GNU 擴充套件的一部分。