title: Convert UTF-8 text to ASCII in PHP
body: <p>This code outputs UTF-8:</p>
  
  <pre><code>echo mb_detect_encoding("ø")
  </code></pre>
  
  <p>And this code outputs ASCII:</p>
  
  <pre><code>echo mb_detect_encoding("&amp;#248;");
  </code></pre>
  
  <p>So, how do you convert UTF-8 to ASCII? For example: convert <code>ø</code>  to  <code>&amp;#248</code></p>