php8.5
Home/ Manual/ reference / iconv/ iconv implementation constants

iconv implementation constants

It is possible to identify at runtime which iconv implementation is adopted by this extension. iconv implementation constantsNameTypeDescriptionICONV_IMPL (string) stringThe implementation nameICONV_VERSION (string) stringThe implementation version

Predefined Constants

It is possible to identify at runtime which iconv implementation is adopted by this extension.

NameTypeDescription
ICONV_IMPL (string)stringThe implementation name
ICONV_VERSION (string)stringThe implementation version
Note

Writing implementation-dependent scripts with these constants is strongly discouraged.

The following constants are also available:

NameTypeDescription
ICONV_MIME_DECODE_STRICT (int)intA bitmask used for iconv_mime_decode()
ICONV_MIME_DECODE_CONTINUE_ON_ERROR (int)intA bitmask used for iconv_mime_decode()

Source: reference/iconv/constants.xml · from the official PHP manual (php/doc-en)