Str::convert()
Converts a string to a different encoding
Parameters
Name | Type | Default | Description |
---|---|---|---|
$string * | string |
– | |
$targetEncoding * | string |
– | |
$sourceEncoding | string |
null |
(optional) |
Return type
string