The utf8_decode() function decodes a UTF-8 string to ISO-8859-1.
PHP utf8_decode() Function has the following syntax.
utf8_decode(string)
Parameter | Is Required | Description |
---|---|---|
string | Required. | String to decode |
This function returns the decoded string on success, or FALSE on failure.
<?PHP
echo utf8_decode("from java2s.com");
?>
The code above generates the following result.