PHP 手冊
前一頁 |  | 下一頁

# Core Predefined Constants

Core Predefined Constants -- Constants defined in the PHP core, Zend, and SAPI modules

## Description

These constants are defined by the PHP core. This includes PHP, the Zend engine, and SAPI modules.

`PHP_VERSION` (string)

`PHP_OS` (string)

`PHP_EOL` (string)

  Available since PHP 4.3.10 and PHP 5.0.2

`DEFAULT_INCLUDE_PATH` (string)

`PEAR_INSTALL_DIR` (string)

`PEAR_EXTENSION_DIR` (string)

`PHP_EXTENSION_DIR` (string)

`PHP_BINDIR` (string)

`PHP_LIBDIR` (string)

`PHP_DATADIR` (string)

`PHP_SYSCONFDIR` (string)

`PHP_LOCALSTATEDIR` (string)

`PHP_CONFIG_FILE_PATH` (string)

`PHP_OUTPUT_HANDLER_START` (integer)

`PHP_OUTPUT_HANDLER_CONT` (integer)

`PHP_OUTPUT_HANDLER_END` (integer)

`E_ERROR` (integer)

`E_WARNING` (integer)

`E_PARSE` (integer)

`E_NOTICE` (integer)

`E_CORE_ERROR` (integer)

`E_CORE_WARNING` (integer)

`E_COMPILE_ERROR` (integer)

`E_COMPILE_WARNING` (integer)

`E_USER_ERROR` (integer)

`E_USER_WARNING` (integer)

`E_USER_NOTICE` (integer)

`E_ALL` (integer)

`E_STRICT` (integer)

  Available since PHP 5.0.0

See also: Magic constants.

前一頁 | 內容 | 下一頁
預先定義常數 | 上一層 | Standard Predefined Constants