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.

CRYPT_SALT_LENGTH (int)
CRYPT_STD_DES (int)
Indicates whether standard DES-based hashes are supported in crypt(). Always 1.
CRYPT_EXT_DES (int)
Indicates whether extended DES-based hashes are supported in crypt(). Always 1.
CRYPT_MD5 (int)
Indicates whether MD5 hashes are supported in crypt(). Always 1.
CRYPT_BLOWFISH (int)
Indicates whether Blowfish hashes are supported in crypt(). Always 1.
CRYPT_SHA256 (int)
Indicates whether SHA-256 hashes are supported in crypt(). Always 1.
CRYPT_SHA512 (int)
Indicates whether SHA-512 hashes are supported in crypt(). Always 1.
HTML_SPECIALCHARS (int)
HTML_ENTITIES (int)
ENT_COMPAT (int)
ENT_QUOTES (int)
ENT_NOQUOTES (int)
ENT_IGNORE (int)
ENT_SUBSTITUTE (int)
ENT_DISALLOWED (int)
ENT_HTML401 (int)
ENT_XML1 (int)
ENT_XHTML (int)
ENT_HTML5 (int)
CHAR_MAX (int)
LC_CTYPE (int)
Character classification and conversion affected by locale setting.
LC_NUMERIC (int)
Decimal separator affected by locale setting.
LC_TIME (int)
Date and time formatting affected by locale setting.
LC_COLLATE (int)
String comparison affected by locale setting.
LC_MONETARY (int)
Monetary formatting affected by locale setting.
LC_ALL (int)
Affects all functions that any of the other LC_* constants affect.
LC_MESSAGES (int)
System responses affected by locale setting. Available if PHP was compiled with libintl.
STR_PAD_LEFT (int)
STR_PAD_RIGHT (int)
STR_PAD_BOTH (int)
nl_langinfo() LC_TIME Category Constants
Constants Description
ABDAY_1 (int) Abbreviated name of first day of the week.
ABDAY_2 (int) Abbreviated name of second day of the week.
ABDAY_3 (int) Abbreviated name of third day of the week.
ABDAY_4 (int) Abbreviated name of fourth day of the week.
ABDAY_5 (int) Abbreviated name of fifth day of the week.
ABDAY_6 (int) Abbreviated name of sixth day of the week.
ABDAY_7 (int) Abbreviated name of seventh day of the week.
DAY_1 (int) Name of the first day of the week.
DAY_2 (int) Name of the second day of the week.
DAY_3 (int) Name of the third day of the week.
DAY_4 (int) Name of the fourth day of the week.
DAY_5 (int) Name of the fifth day of the week.
DAY_6 (int) Name of the sixth day of the week.
DAY_7 (int) Name of the seventh day of the week.
ABMON_1 (int) Abbreviated name of the first month of the year.
ABMON_2 (int) Abbreviated name of the second month of the year.
ABMON_3 (int) Abbreviated name of the third month of the year.
ABMON_4 (int) Abbreviated name of the fourth month of the year.
ABMON_5 (int) Abbreviated name of the fifth month of the year.
ABMON_6 (int) Abbreviated name of the sixth month of the year.
ABMON_7 (int) Abbreviated name of the seventh month of the year.
ABMON_8 (int) Abbreviated name of the eighth month of the year.
ABMON_9 (int) Abbreviated name of the ninth month of the year.
ABMON_10 (int) Abbreviated name of the tenth month of the year.
ABMON_11 (int) Abbreviated name of the eleventh month of the year.
ABMON_12 (int) Abbreviated name of the twelfth month of the year.
MON_1 (int) Name of the first month of the year.
MON_2 (int) Name of the second month of the year.
MON_3 (int) Name of the third month of the year.
MON_4 (int) Name of the fourth month of the year.
MON_5 (int) Name of the fifth month of the year.
MON_6 (int) Name of the sixth month of the year.
MON_7 (int) Name of the seventh month of the year.
MON_8 (int) Name of the eighth month of the year.
MON_9 (int) Name of the ninth month of the year.
MON_10 (int) Name of the tenth month of the year.
MON_11 (int) Name of the eleventh month of the year.
MON_12 (int) Name of the twelfth month of the year.
AM_STR (int) String for Ante meridian.
PM_STR (int) String for Post meridian.
D_T_FMT (int) String that can be used as the format string for strftime() to represent time and date.
D_FMT (int) String that can be used as the format string for strftime() to represent date.
T_FMT (int) String that can be used as the format string for strftime() to represent time.
T_FMT_AMPM (int) String that can be used as the format string for strftime() to represent time in 12-hour format with ante/post meridian.
ERA (int) Alternate era.
ERA_YEAR (int) Year in alternate era format.
ERA_D_T_FMT (int) Date and time in alternate era format (string can be used in strftime()).
ERA_D_FMT (int) Date in alternate era format (string can be used in strftime()).
ERA_T_FMT (int) Time in alternate era format (string can be used in strftime()).
ALT_DIGITS (int) Alternative symbols for digits.
nl_langinfo() LC_MONETARY Category Constants
Constants Description
INT_CURR_SYMBOL (int) International currency symbol.
CURRENCY_SYMBOL (int) Local currency symbol.
CRNCYSTR (int) Same value as CURRENCY_SYMBOL.
MON_DECIMAL_POINT (int) Decimal point character.
MON_THOUSANDS_SEP (int) Thousands separator (groups of three digits).
MON_GROUPING (int) Like "grouping" element.
POSITIVE_SIGN (int) Sign for positive values.
NEGATIVE_SIGN (int) Sign for negative values.
INT_FRAC_DIGITS (int) International fractional digits.
FRAC_DIGITS (int) Local fractional digits.
P_CS_PRECEDES (int) Returns 1 if CURRENCY_SYMBOL precedes a positive value.
P_SEP_BY_SPACE (int) Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.
N_CS_PRECEDES (int) Returns 1 if CURRENCY_SYMBOL precedes a negative value.
N_SEP_BY_SPACE (int) Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.
P_SIGN_POSN (int)

N_SIGN_POSN (int)
nl_langinfo() LC_NUMERIC Category Constants
Constants Description
DECIMAL_POINT (int) Decimal point character.
RADIXCHAR (int) Same value as DECIMAL_POINT.
THOUSANDS_SEP (int) Separator character for thousands (groups of three digits).
THOUSEP (int) Same value as THOUSANDS_SEP.
GROUPING (int)
nl_langinfo() LC_MESSAGES Category Constants
Constants Description
YESEXPR (int) Regex string for matching "yes" input.
NOEXPR (int) Regex string for matching "no" input.
YESSTR (int) Output string for "yes".
NOSTR (int) Output string for "no".
nl_langinfo() LC_CTYPE Category Constants
Constants Description
CODESET (int) Return a string with the name of the character encoding.
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top