title: A non well formed numeric value encountered show When to get current date and current time
body: <p>I would like to get timestamp for current date and current time. I has searching for it today, but no luck, I got confused. I'm very basic in PHP btw :( The timestamp are correct, but I get that notice.</p>
  <pre><code>&lt;?php
  $current_time_and_date = mktime(date(&quot;h&quot;), date(&quot;i&quot;), date(&quot;sa&quot;), date(&quot;m&quot;), date(&quot;d&quot;), date(&quot;Y&quot;));
  echo $current_time_and_date;
  </code></pre>
  <p>Result:</p>
  <blockquote>
  <p><strong>Notice</strong>: A non well formed numeric value encountered in <strong>C:\xampp\htdocs\index.php</strong> on line <strong>2</strong></p>
  <p>1551814433</p>
  </blockquote>