Function __global->handle_string_bom
Definitions
sources/global3.php
- Detect a BOM (Unicode byte-order-mark) from a string, and strip it. Return the altered string.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$contents | string | required parameter | N/A | N/A | Input string |
$default_charset | ?string | Null | N/A | N/A | The default character set to assume if none is specified in the input string (null: website character set) |
Return
- Altered string
- Type: string
- Set: N/A
- Range: N/A