title: How to get a default zero double value in PHP?
body: <p>My question sounds simple, but the solution seems to be hard/tricky:</p>
  
  <pre><code>var_dump(0.0);
  </code></pre>
  
  <p>returns me</p>
  
  <pre><code>float 0
  </code></pre>
  
  <p>But why? Also the tries with <code>doubleval</code> or a double cast doesn´t solve the problem. I need this for setting a default value to a double table column in the database to zero through mysql pdo driver.</p>