PHP utf8_decode() Function
In this chapter you will learn:
- Description for PHP utf8_decode() Function
- Syntax for PHP utf8_decode() Function
- Parameter for PHP utf8_decode() Function
- Return value for PHP utf8_decode() Function
- Example - Use utf8_decode
Description
The utf8_decode() function decodes a UTF-8 string to ISO-8859-1.
Syntax
PHP utf8_decode() Function has the following syntax.
utf8_decode(string)
Parameter
Parameter | Is Required | Description |
---|---|---|
string | Required. | String to decode |
Return
This function returns the decoded string on success, or FALSE on failure.
Example
<?PHP
echo utf8_decode("from java2s.com");
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Description for PHP utf8_encode() Function
- Syntax for PHP utf8_encode() Function
- Parameter for PHP utf8_encode() Function
- Return value for PHP utf8_encode() Function
- Example - Use utf8_encode
Home » PHP Tutorial » PHP String Functions