title: Error formatting monetary value - Cakephp 3
body: <p>Friends, I have an input to enter the price of a product. I use a mask to format the value, but only the number is saved in the database. Without any characters.</p>
  <p><strong>12345</strong>, <strong>123456</strong>.</p>
  <p>I'm trying to format this in php using number_format(). I've tried money_format(), but it always returns an error.</p>
  <p>The two exits would be: <strong>123,45</strong> and <strong>1.234,56</strong></p>
  <p>I'm using:</p>
  <pre><code>&lt;?= number_format($product-&gt;price, 0, &quot;,&quot;, &quot;.&quot;); ?&gt;
  </code></pre>
  <p>But then he returns:<strong>12.345</strong> and <strong>123.456</strong></p>
  <p>I appreciate if anyone can analyze. Any comments are welcome.</p>
  <p>The price field is varchar, but I've also tried double and float.</p>