Getting Timestamp from PHP
<p>I am trying to get the timestamp in php. Using following code </p>

<pre><code>$date = new DateTime();
        echo $date-&gt;getTimestamp();
</code></pre>

<p>error comes <code>getTimestamp() is undefined</code> however according to this  </p>

<blockquote>
  <p><a href="http://php.net/manual/en/datetime.gettimestamp.php" rel="nofollow">http://php.net/manual/en/datetime.gettimestamp.php</a></p>
</blockquote>

<p>I need the format like 123456789</p>
