title: PHP Notice: A non well formed numeric value encountered
body: <p>I write a function like this:-</p>
  
  <pre><code>function loadTime() {
      $load = microtime();
      return number_format($load,2);
  }
  </code></pre>
  
  <p>and then call it with a piece of HTML code:</p>
  
  <pre><code>Page generated in &lt;?php echo loadTime() ?&gt; seconds.
  </code></pre>
  
  <p>I think you can guess what i wanna do! i wanna display my page load time with this PHP function, i have to say that this function works but when i open <code>error_log</code> it shows this error:</p>
  
  <blockquote>
    <p>PHP Notice:  A non well formed numeric value encountered in
    /home/coffeesc/public_html/index.php on line 12</p>
  </blockquote>
  
  <p>as I searched, I think something is wrong with time or even date! no idea but I wonder if you can suggest me a way for displaying page load time with php (somehow in <code>ms</code>)</p>