php预定义常量
程序员文章站
2022-06-03 10:23:16
这些常量在 php 的内核中定义。它包含 php、zend 引擎和 sapi 模块。 php_ver...
这些常量在 php 的内核中定义。它包含 php、zend 引擎和 sapi 模块。
php_version (string)
php_os (string)
php_eol (string)
自 php 4.3.10 和 php 5.0.2 起可用
php_int_max (integer)
自 php 4.4.0 和 php 5.0.5 起可用
php_int_size (integer)
自 php 4.4.0 和 php 5.0.5 起可用
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)
从 php 5.0.0 起有效
__compiler_halt_offset__ (integer)
自 php 5.1.0 起有效
参见魔术常量。
标准预定义常量
这些常量是 php 默认定义的。
extr_overwrite (integer)
extr_skip (integer)
extr_prefix_same (integer)
extr_prefix_all (integer)
extr_prefix_invalid (integer)
extr_prefix_if_exists (integer)
extr_if_exists (integer)
sort_asc (integer)
sort_desc (integer)
sort_regular (integer)
sort_numeric (integer)
sort_string (integer)
case_lower (integer)
case_upper (integer)
count_normal (integer)
count_recursive (integer)
assert_active (integer)
assert_callback (integer)
assert_bail (integer)
assert_warning (integer)
assert_quiet_eval (integer)
connection_aborted (integer)
connection_normal (integer)
connection_timeout (integer)
ini_user (integer)
ini_perdir (integer)
ini_system (integer)
ini_all (integer)
m_e (float)
m_log2e (float)
m_log10e (float)
m_ln2 (float)
m_ln10 (float)
m_pi (float)
m_pi_2 (float)
m_pi_4 (float)
m_1_pi (float)
m_2_pi (float)
m_2_sqrtpi (float)
m_sqrt2 (float)
m_sqrt1_2 (float)
crypt_salt_length (integer)
crypt_std_des (integer)
crypt_ext_des (integer)
crypt_md5 (integer)
crypt_blowfish (integer)
directory_separator (string)
seek_set (integer)
seek_cur (integer)
seek_end (integer)
lock_sh (integer)
lock_ex (integer)
lock_un (integer)
lock_nb (integer)
html_specialchars (integer)
html_entities (integer)
ent_compat (integer)
ent_quotes (integer)
ent_noquotes (integer)
info_general (integer)
info_credits (integer)
info_configuration (integer)
info_modules (integer)
info_environment (integer)
info_variables (integer)
info_license (integer)
info_all (integer)
credits_group (integer)
credits_general (integer)
credits_sapi (integer)
credits_modules (integer)
credits_docs (integer)
credits_fullpage (integer)
credits_qa (integer)
credits_all (integer)
str_pad_left (integer)
str_pad_right (integer)
str_pad_both (integer)
pathinfo_dirname (integer)
pathinfo_basename (integer)
pathinfo_extension (integer)
path_separator (string)
char_max (integer)
lc_ctype (integer)
lc_numeric (integer)
lc_time (integer)
lc_collate (integer)
lc_monetary (integer)
lc_all (integer)
lc_messages (integer)
abday_1 (integer)
abday_2 (integer)
abday_3 (integer)
abday_4 (integer)
abday_5 (integer)
abday_6 (integer)
abday_7 (integer)
day_1 (integer)
day_2 (integer)
day_3 (integer)
day_4 (integer)
day_5 (integer)
day_6 (integer)
day_7 (integer)
abmon_1 (integer)
abmon_2 (integer)
abmon_3 (integer)
abmon_4 (integer)
abmon_5 (integer)
abmon_6 (integer)
abmon_7 (integer)
abmon_8 (integer)
abmon_9 (integer)
abmon_10 (integer)
abmon_11 (integer)
abmon_12 (integer)
mon_1 (integer)
mon_2 (integer)
mon_3 (integer)
mon_4 (integer)
mon_5 (integer)
mon_6 (integer)
mon_7 (integer)
mon_8 (integer)
mon_9 (integer)
mon_10 (integer)
mon_11 (integer)
mon_12 (integer)
am_str (integer)
pm_str (integer)
d_t_fmt (integer)
d_fmt (integer)
t_fmt (integer)
t_fmt_ampm (integer)
era (integer)
era_year (integer)
era_d_t_fmt (integer)
era_d_fmt (integer)
era_t_fmt (integer)
alt_digits (integer)
int_curr_symbol (integer)
currency_symbol (integer)
crncystr (integer)
mon_decimal_point (integer)
mon_thousands_sep (integer)
mon_grouping (integer)
positive_sign (integer)
negative_sign (integer)
int_frac_digits (integer)
frac_digits (integer)
p_cs_precedes (integer)
p_sep_by_space (integer)
n_cs_precedes (integer)
n_sep_by_space (integer)
p_sign_posn (integer)
n_sign_posn (integer)
decimal_point (integer)
radixchar (integer)
thousands_sep (integer)
thousep (integer)
grouping (integer)
yesexpr (integer)
noexpr (integer)
yesstr (integer)
nostr (integer)
codeset (integer)
log_emerg (integer)
log_alert (integer)
log_crit (integer)
log_err (integer)
log_warning (integer)
log_notice (integer)
log_info (integer)
log_debug (integer)
log_kern (integer)
log_user (integer)
log_mail (integer)
log_daemon (integer)
log_auth (integer)
log_syslog (integer)
log_lpr (integer)
log_news (integer)
log_uucp (integer)
log_cron (integer)
log_authpriv (integer)
log_local0 (integer)
log_local1 (integer)
log_local2 (integer)
log_local3 (integer)
log_local4 (integer)
log_local5 (integer)
log_local6 (integer)
log_local7 (integer)
log_pid (integer)
log_cons (integer)
log_odelay (integer)
log_ndelay (integer)
log_nowait (integer)
log_perror (integer)
php_version (string)
php_os (string)
php_eol (string)
自 php 4.3.10 和 php 5.0.2 起可用
php_int_max (integer)
自 php 4.4.0 和 php 5.0.5 起可用
php_int_size (integer)
自 php 4.4.0 和 php 5.0.5 起可用
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)
从 php 5.0.0 起有效
__compiler_halt_offset__ (integer)
自 php 5.1.0 起有效
参见魔术常量。
标准预定义常量
这些常量是 php 默认定义的。
extr_overwrite (integer)
extr_skip (integer)
extr_prefix_same (integer)
extr_prefix_all (integer)
extr_prefix_invalid (integer)
extr_prefix_if_exists (integer)
extr_if_exists (integer)
sort_asc (integer)
sort_desc (integer)
sort_regular (integer)
sort_numeric (integer)
sort_string (integer)
case_lower (integer)
case_upper (integer)
count_normal (integer)
count_recursive (integer)
assert_active (integer)
assert_callback (integer)
assert_bail (integer)
assert_warning (integer)
assert_quiet_eval (integer)
connection_aborted (integer)
connection_normal (integer)
connection_timeout (integer)
ini_user (integer)
ini_perdir (integer)
ini_system (integer)
ini_all (integer)
m_e (float)
m_log2e (float)
m_log10e (float)
m_ln2 (float)
m_ln10 (float)
m_pi (float)
m_pi_2 (float)
m_pi_4 (float)
m_1_pi (float)
m_2_pi (float)
m_2_sqrtpi (float)
m_sqrt2 (float)
m_sqrt1_2 (float)
crypt_salt_length (integer)
crypt_std_des (integer)
crypt_ext_des (integer)
crypt_md5 (integer)
crypt_blowfish (integer)
directory_separator (string)
seek_set (integer)
seek_cur (integer)
seek_end (integer)
lock_sh (integer)
lock_ex (integer)
lock_un (integer)
lock_nb (integer)
html_specialchars (integer)
html_entities (integer)
ent_compat (integer)
ent_quotes (integer)
ent_noquotes (integer)
info_general (integer)
info_credits (integer)
info_configuration (integer)
info_modules (integer)
info_environment (integer)
info_variables (integer)
info_license (integer)
info_all (integer)
credits_group (integer)
credits_general (integer)
credits_sapi (integer)
credits_modules (integer)
credits_docs (integer)
credits_fullpage (integer)
credits_qa (integer)
credits_all (integer)
str_pad_left (integer)
str_pad_right (integer)
str_pad_both (integer)
pathinfo_dirname (integer)
pathinfo_basename (integer)
pathinfo_extension (integer)
path_separator (string)
char_max (integer)
lc_ctype (integer)
lc_numeric (integer)
lc_time (integer)
lc_collate (integer)
lc_monetary (integer)
lc_all (integer)
lc_messages (integer)
abday_1 (integer)
abday_2 (integer)
abday_3 (integer)
abday_4 (integer)
abday_5 (integer)
abday_6 (integer)
abday_7 (integer)
day_1 (integer)
day_2 (integer)
day_3 (integer)
day_4 (integer)
day_5 (integer)
day_6 (integer)
day_7 (integer)
abmon_1 (integer)
abmon_2 (integer)
abmon_3 (integer)
abmon_4 (integer)
abmon_5 (integer)
abmon_6 (integer)
abmon_7 (integer)
abmon_8 (integer)
abmon_9 (integer)
abmon_10 (integer)
abmon_11 (integer)
abmon_12 (integer)
mon_1 (integer)
mon_2 (integer)
mon_3 (integer)
mon_4 (integer)
mon_5 (integer)
mon_6 (integer)
mon_7 (integer)
mon_8 (integer)
mon_9 (integer)
mon_10 (integer)
mon_11 (integer)
mon_12 (integer)
am_str (integer)
pm_str (integer)
d_t_fmt (integer)
d_fmt (integer)
t_fmt (integer)
t_fmt_ampm (integer)
era (integer)
era_year (integer)
era_d_t_fmt (integer)
era_d_fmt (integer)
era_t_fmt (integer)
alt_digits (integer)
int_curr_symbol (integer)
currency_symbol (integer)
crncystr (integer)
mon_decimal_point (integer)
mon_thousands_sep (integer)
mon_grouping (integer)
positive_sign (integer)
negative_sign (integer)
int_frac_digits (integer)
frac_digits (integer)
p_cs_precedes (integer)
p_sep_by_space (integer)
n_cs_precedes (integer)
n_sep_by_space (integer)
p_sign_posn (integer)
n_sign_posn (integer)
decimal_point (integer)
radixchar (integer)
thousands_sep (integer)
thousep (integer)
grouping (integer)
yesexpr (integer)
noexpr (integer)
yesstr (integer)
nostr (integer)
codeset (integer)
log_emerg (integer)
log_alert (integer)
log_crit (integer)
log_err (integer)
log_warning (integer)
log_notice (integer)
log_info (integer)
log_debug (integer)
log_kern (integer)
log_user (integer)
log_mail (integer)
log_daemon (integer)
log_auth (integer)
log_syslog (integer)
log_lpr (integer)
log_news (integer)
log_uucp (integer)
log_cron (integer)
log_authpriv (integer)
log_local0 (integer)
log_local1 (integer)
log_local2 (integer)
log_local3 (integer)
log_local4 (integer)
log_local5 (integer)
log_local6 (integer)
log_local7 (integer)
log_pid (integer)
log_cons (integer)
log_odelay (integer)
log_ndelay (integer)
log_nowait (integer)
log_perror (integer)
下一篇: Activity的启动模式