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:

ParameterDescriptionRequired/Optional
stringSpecify the string to decoderequired
flagsSpecify how to handle quotes and which document type to use.Optional

Example 1

Output:

JavaTpoint.com

Example 2

Output:

Array ( ["] => " [&] => & [<] => < [>] => > )

Example 3

Output:

Hello PHP : 'E=MC�'
Hello PHP : 'E=MC�'
Hello PHP : 'E=MC�'

Next TopicPHP String




Latest Courses