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