Свойство | Type | Description | |
---|---|---|---|
$entities | array | Lookup table for entity conversions not supported by html_entity_decode() |
Méthode | Description | |
---|---|---|
codeToUtf8 ( integer $code ) : string | Converts a given unicode to its UTF-8 equivalent. | |
decodeEntities ( string $string, string $charset = 'UTF-8' ) : string | Decodes markup entities in a given string. | |
transliterate ( string $string, string $charsetFrom = 'UTF-8', string $charsetTo = 'ISO-8859-1' ) : string | Transliterates characters in a given string where possible. |
public codeToUtf8 ( integer $code ) : string | ||
$code | integer | Code to convert |
Résultat | string | Character corresponding to code |
public transliterate ( string $string, string $charsetFrom = 'UTF-8', string $charsetTo = 'ISO-8859-1' ) : string | ||
$string | string | String containing characters to transliterate |
$charsetFrom | string | Optional character set of the string, defaults to UTF-8 |
$charsetTo | string | Optional character set to which the string should be converted, defaults to ISO-8859-1 |
Résultat | string | String with characters transliterated or the original string if transliteration was not possible |
protected static array $entities | ||
Résultat | array |