The utf8_decode() function is an inbuilt function in PHP which is used to decode a UTF-8 string to the ISO-8859-1. This function decodes back to the encoded string which is encoded with the utf8_encode() function.
string utf8_decode( string $string )
Parameter: This function accepts single parameter $string which is required. It specifies the UTF-8 encoded string to be decoded.
Return Value: This function returns a string representing the decoded string on success and false on failure.
Note: This function is available for PHP 4.0.0 and newer version.
Encoded elements: ! " # $ % & ' ( ) * + , - . / 0 1 Decoded elements: ! " # $ % & ' ( ) * + , - . / 0 1
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.