title: Class 'NumberFormatter' not found error in simple PHP program
body: <p>I have a simple PHP program but I am encountering this error:</p>
  
  <blockquote>
    <p>Class 'NumberFormatter' not found </p>
  </blockquote>
  
  <p>I have researched similar issues in Stackoverflow but honestly none gave a concrete solution.  Others suggest to upgrade the version of PHP, others un-comment a specific line in the php.ini file and none of those worked for me.  </p>
  
  <p>Below is my code:  I even used the suggested solution from <a href="https://bugs.php.net/bug.php?id=68410" rel="nofollow noreferrer">https://bugs.php.net</a> but it still doesn't work.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;?php
  function writeMsg(){
  
  $f = new \NumberFormatter("en", \NumberFormatter::SPELLOUT);    
  
  echo $f-&gt;format(1432);
  }
  writeMsg();
  ?&gt;  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>