|
static | convert ($data, $from, $to, $safe_mode=false, $safe_char=0xFFFC) |
|
Definition at line 18 of file uctc.php.
static uctc::convert |
( |
|
$data, |
|
|
|
$from, |
|
|
|
$to, |
|
|
|
$safe_mode = false , |
|
|
|
$safe_char = 0xFFFC |
|
) |
| |
|
static |
The actual conversion routine
- Parameters
-
mixed | $data | The data to convert, usually a string, array when converting from UCS-4 array |
string | $from | Original encoding of the data |
string | $to | Target encoding of the data |
bool | $safe_mode | SafeMode tries to correct invalid codepoints |
- Returns
- mixed False on failure, String or array on success, depending on target encoding public
- Since
- 0.0.1
Definition at line 35 of file uctc.php.
The documentation for this class was generated from the following file: