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)
LC_NUMERIC (int)
LC_TIME (int)
LC_COLLATE (int)
LC_MONETARY (int)
LC_ALL (int)
LC_MESSAGES (int)
STR_PAD_LEFT (int)
STR_PAD_RIGHT (int)
STR_PAD_BOTH (int)
nl_langinfo() LC_TIME Category Constants
Constants Description
ABDAY_(1-7) (int) Abbreviated name of n-th day of the week.
DAY_(1-7) (int) Name of the n-th day of the week (DAY_1 = Sunday).
ABMON_(1-12) (int) Abbreviated name of the n-th month of the year.
MON_(1-12) (int) Name of the n-th 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()).
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.