99
PHP html_entity_decode() Function
PHP html_entity_decode() is string function. It is used to convert HTML entities to characters. The string function html_entity_decode() is the opposite of htmlentities().
Syntax:
Parameter | Description | Required/Optional |
---|---|---|
string | Specify the string to decode | required |
flags | Specify how to handle quotes and which document type to use. | Optional |
Example 1
Output:
tutoraspire.com
Example 2
Output:
Array ( ["] => " [&] => & [<] => < [>] => > )
Example 3
Output:
Hello PHP : 'E=MC˛' Hello PHP : 'E=MC˛' Hello PHP : 'E=MC˛'
Next TopicPHP String