title: convert "&#xe9;" to "é" in PHP?
body: <p>What is the best way to convert a string will XML entities like <code>&amp;#xe9;</code> to => <code>é</code>in PHP ?</p>
  
  <pre><code>$string = "\xe9"; // é
  echo utf8_encode($string );
  </code></pre>
  
  <p>is working great,
  but what to do with <code>&amp;#xe9;</code></p>
  
  <p>replace &amp;# per \ then use utf8 ?</p>