title: PHP - string to money conversion
body: <p>I'm trying to convert a string into money format using <a href="http://pt.php.net/manual/en/function.money-format.php" rel="nofollow noreferrer">this function</a>, and trying to create something like this :</p>
  
  <pre><code>350000000
  
  to
  
  350.000.000,00
  </code></pre>
  
  <p>All my attempts failed so far, being this the last one : </p>
  
  <pre><code>setlocale(LC_MONETARY, 'pt_PT.UTF-8@euro');
  echo money_format('%.2n', $preco);
  </code></pre>
  
  <p>Any help would be appreciated. Cheers!</p>