echo html_entity_decode($str); ?> The HTML output of the code above will be (View Source): w3schools.com The browser output of the code above will be: w3schools.com Definition and UsageThe html_entity_decode() function converts HTML entities to characters.The html_entity_decode() ...
Store JSON data in a PHP variable, and then decode it into a PHP object: $jsonobj='{"Peter":35,"Ben":37,"Joe":43}';var_dump(json_decode($jsonobj)); Run Example » Definition and Usage Thejson_decode()function is used to decode or convert a JSON object to a PHP object. ...
The htmlspecialchars_decode() function converts some predefined HTML entities to characters. HTML entities that will be decoded are: & becomes & (ampersand) " becomes " (double quote) ' becomes ' (single quote) < becomes < (less than) ...