Convert some HTML entities to characters, using the Western European character-set in PHP

Description

The following code shows how to convert some HTML entities to characters, using the Western European character-set.

Example


  /*from w  w  w .ja v a 2  s  . c  o  m*/
<?php
    $str = "#039;";
    echo html_entity_decode($str, ENT_QUOTES, "ISO-8859-1");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone