uctc::convert
The actual conversion routine
Signature
public function convert(mixed
$data,
[string
$from = false,
[string
$to = false,
[bool
$safe_mode = false,
[integer
$safe_char = 0xFFFC]]]] )
Parameters
-
$data
- The data to convert, usually a string, array when converting from UCS-4 array
-
$from
- Original encoding of the data
-
$to
- Target encoding of the data
-
$safe_mode
- SafeMode tries to correct invalid codepoints
-
$safe_char
Returns
- mixed
- False on failure, String or array on success, depending on target encoding