str::convert($string, $targetEncoding, $sourceEncoding = null)

Converts a string to a different encoding

  • $string (string)
  • $targetEncoding (string)
  • $sourceEncoding (string)
    (optional)
  • return (string)