ob_iconv_handler
Introduction
Human Language and Character Encoding Support
PHP Manual
Internationalization Functions
Introduction
Installing/Configuring
Requirements
Installation
Runtime Configuration
Resource Types
Predefined Constants
Examples
Basic usage of this extension
Collator
— The Collator class
Collator::asort
— Sort array maintaining index association
Collator::compare
— Compare two Unicode strings
Collator::__construct
— Create a collator
Collator::create
— Create a collator
Collator::getAttribute
— Get collation attribute value
Collator::getErrorCode
— Get collator's last error code
Collator::getErrorMessage
— Get text for collator's last error code
Collator::getLocale
— Get the locale name of the collator
Collator::getSortKey
— Get sorting key for a string
Collator::getStrength
— Get current collation strength
Collator::setAttribute
— Set collation attribute
Collator::setStrength
— Set collation strength
Collator::sortWithSortKeys
— Sort array using specified collator and sort keys
Collator::sort
— Sort array using specified collator
NumberFormatter
— The NumberFormatter class
NumberFormatter::create
— Create a number formatter
NumberFormatter::formatCurrency
— Format a currency value
NumberFormatter::format
— Format a number
NumberFormatter::getAttribute
— Get an attribute
NumberFormatter::getErrorCode
— Get formatter's last error code.
NumberFormatter::getErrorMessage
— Get formatter's last error message.
NumberFormatter::getLocale
— Get formatter locale
NumberFormatter::getPattern
— Get formatter pattern
NumberFormatter::getSymbol
— Get a symbol value
NumberFormatter::getTextAttribute
— Get a text attribute
NumberFormatter::parseCurrency
— Parse a currency number
NumberFormatter::parse
— Parse a number
NumberFormatter::setAttribute
— Set an attribute
NumberFormatter::setPattern
— Set formatter pattern
NumberFormatter::setSymbol
— Set a symbol value
NumberFormatter::setTextAttribute
— Set a text attribute
Locale
— The Locale class
Locale::acceptFromHttp
— Tries to find out best available locale based on HTTP "Accept-Language" header
Locale::composeLocale
— Returns a correctly ordered and delimited locale ID
Locale::filterMatches
— Checks if a language tag filter matches with locale
Locale::getAllVariants
— Gets the variants for the input locale
Locale::getDefault
— Gets the default locale value from the INTL global 'default_locale'
Locale::getDisplayLanguage
— Returns an appropriately localized display name for language of the inputlocale
Locale::getDisplayName
— Returns an appropriately localized display name for the input locale
Locale::getDisplayRegion
— Returns an appropriately localized display name for region of the input locale
Locale::getDisplayScript
— Returns an appropriately localized display name for script of the input locale
Locale::getDisplayVariant
— Returns an appropriately localized display name for variants of the input locale
Locale::getKeywords
— Gets the keywords for the input locale
Locale::getPrimaryLanguage
— Gets the primary language for the input locale
Locale::getRegion
— Gets the region for the input locale
Locale::getScript
— Gets the script for the input locale
Locale::lookup
— Searches the language tag list for the best match to the language
Locale::parseLocale
— Returns a key-value array of locale ID subtag elements.
Locale::setDefault
— sets the default runtime locale
Normalizer
— The Normalizer class
Normalizer::isNormalized
— Checks if the provided string is already in the specified normalization form.
Normalizer::normalize
— Normalizes the input provided and returns the normalized string
MessageFormatter
— The MessageFormatter class
MessageFormatter::create
— Constructs a new Message Formatter
MessageFormatter::formatMessage
— Quick format message
MessageFormatter::format
— Format the message
MessageFormatter::getErrorCode
— Get the error code from last operation
MessageFormatter::getErrorMessage
— Get the error text from the last operation
MessageFormatter::getLocale
— Get the locale for which the formatter was created.
MessageFormatter::getPattern
— Get the pattern used by the formatter
MessageFormatter::parseMessage
— Quick parse input string
MessageFormatter::parse
— Parse input string according to pattern
MessageFormatter::setPattern
— Set the pattern used by the formatter
IntlDateFormatter
— The IntlDateFormatter class
IntlDateFormatter::create
— Create a date formatter
IntlDateFormatter::format
— Format the date/time value as a string
IntlDateFormatter::getCalendar
— Get the calendar used for the IntlDateFormatter
IntlDateFormatter::getDateType
— Get the datetype used for the IntlDateFormatter
IntlDateFormatter::getErrorCode
— Get the error code from last operation
IntlDateFormatter::getErrorMessage
— Get the error text from the last operation.
IntlDateFormatter::getLocale
— Get the locale used by formatter
IntlDateFormatter::getPattern
— Get the pattern used for the IntlDateFormatter
IntlDateFormatter::getTimeType
— Get the timetype used for the IntlDateFormatter
IntlDateFormatter::getTimeZoneId
— Get the timezone-id used for the IntlDateFormatter
IntlDateFormatter::isLenient
— Get the lenient used for the IntlDateFormatter
IntlDateFormatter::localtime
— Parse string to a field-based time value
IntlDateFormatter::parse
— Parse string to a timestamp value
IntlDateFormatter::setCalendar
— sets the calendar used to the appropriate calendar, which must be
IntlDateFormatter::setLenient
— Set the leniency of the parser
IntlDateFormatter::setPattern
— Set the pattern used for the IntlDateFormatter
IntlDateFormatter::setTimeZoneId
— Sets the time zone to use
ResourceBundle
— The ResourceBundle class
ResourceBundle::count
— Get number of elements in the bundle
ResourceBundle::create
— Create a resource bundle
ResourceBundle::getErrorCode
— Get bundle's last error code.
ResourceBundle::getErrorMessage
— Get bundle's last error message.
ResourceBundle::get
— Get data from the bundle
ResourceBundle::getLocales
— Get supported locales
Grapheme Functions
grapheme_extract
— Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8.
grapheme_stripos
— Find position (in grapheme units) of first occurrence of a case-insensitive string
grapheme_stristr
— Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack.
grapheme_strlen
— Get string length in grapheme units
grapheme_strpos
— Find position (in grapheme units) of first occurrence of a string
grapheme_strripos
— Find position (in grapheme units) of last occurrence of a case-insensitive string
grapheme_strrpos
— Find position (in grapheme units) of last occurrence of a string
grapheme_strstr
— Returns part of haystack string from the first occurrence of needle to the end of haystack.
grapheme_substr
— Return part of a string
IDN Functions
idn_to_ascii
— Convert domain name to IDNA ASCII form.
idn_to_unicode
— Alias of idn_to_utf8
idn_to_utf8
— Convert domain name from IDNA ASCII to Unicode.
intl Functions
intl_error_name
— Get symbolic name for a given error code
intl_get_error_code
— Get the last error code
intl_get_error_message
— Get description of the last error
intl_is_failure
— Check whether the given error code indicates failure
ob_iconv_handler
Introduction
Human Language and Character Encoding Support
PHP Manual