title: how to get previous day in PHP
body: <p>I know how to get the current date in PHP like so---</p>
  <pre><code>echo date(&quot;Y/m/d&quot;)
  </code></pre>
  <p>But I am not sure how to get it the previous day. <strong>I mean today is 2015-08-10</strong>, so how I can get yesterday's date <strong>2015-08-09</strong>.</p>
  <pre><code>UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 1 DAY)
  </code></pre>
  <p>Is it the solution, but do not know how it can solve my problem.</p>
  <p>Does anyone know how to get the previous day in the PHP?</p>
  <p>I have looked a lot but did not find any simple solution for this, anyone knows any solution for this problem.
  Thanks in advance.</p>