Function __global->entity_utf8_decode
Definitions
sources/character_sets.php
- Convert some data from utf-8 to a character set PHP supports, using HTML entities where there's no direct match.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $data | string | No | No | required parameter | N/A | N/A | Data to convert |
| $internal_charset | string | No | No | required parameter | N/A | N/A | Charset to convert to |
Returns
- Converted data (false: could not convert)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert some data from utf-8 to a character set PHP supports, using HTML entities where there's no direct match.
*
* @param string $data Data to convert
* @param string $internal_charset Charset to convert to
* @return ~string Converted data (false: could not convert)
*/
function entity_utf8_decode(string $data, string $internal_charset)
* Convert some data from utf-8 to a character set PHP supports, using HTML entities where there's no direct match.
*
* @param string $data Data to convert
* @param string $internal_charset Charset to convert to
* @return ~string Converted data (false: could not convert)
*/
function entity_utf8_decode(string $data, string $internal_charset)

