Str::convert()
Converts a string to a different encoding
Str::convert(string $string, string $targetEncoding, string|null $sourceEncoding = null): string
Parameters
Name | Type | Default |
---|---|---|
$stringrequired | string |
no default value |
$targetEncodingrequired | string |
no default value |
$sourceEncoding | string ornull |
null
|
Return type
string