PHP Tutorial
PHP html_entity_decode() function, run and write PHP code.
PHP html_entity_decode() function - online editor.
PHP html_entity_decode() function converts HTML entities to characters.
This function is the opposite of htmlentities().
Syntax:
html_entity_decode(string,flags,character-set);
Tags: This function is the opposite of htmlentities().
Syntax:
html_entity_decode(string,flags,character-set);
Example :
html_entity_decode() function is the opposite of htmlentities() function,
it converts HTML entities in the string to their applicable characters.
html_entity_decode() function is the opposite of htmlentities() function,
it converts HTML entities in the string to their applicable characters.
<?php
// String convertable to htmlentities
$e_str = '<a href="https://www.agernic.com">www.agernic.com</a>';
// It will convert htmlentities and print them
echo htmlentities( $e_str );
echo "<br><br>";
$a_str = "have a <b>nice day</b>";
$x = htmlentities($a_str);
$y = html_entity_decode($x);
echo $x;
echo "<br>";
echo $y;
?>
PHP html_entity_decode() function 11
PHP html_entity_decode() function
PHP Functons
PHP count() FunctionPHP define() function
PHP empty() Function
PHP explode() function
PHP html_entity_decode() function
PHP htmlentities() function
PHP htmlspecialchars_decode() function
PHP htmlspecialchars() function
PHP implode() function
PHP isset() Function
PHP lcfirst() function
PHP ltrim() function
PHP md5() function
PHP print() function
PHP printf() function
PHP rtrim() function
PHP similar_text() function
PHP str_repeat() function
PHP str_replace() function
PHP str_split() function
PHP strcmp() function
PHP strip_tags() function
PHP strlen online function
PHP strrchr() Function
PHP strstr() function
PHP strtolower() function
PHP strtoupper() function
PHP substr() function
PHP trim() function
PHP ucfirst() function