title: PHP is date older than 1 day
body: <p>I need to check if a date is older than 1 day from a specific time in PHP. I tried the code below but it seems to not work. The code below doesn't seem to work. This leads me to two questions actually. </p>
  
  <p>1) Why does the code below not work?</p>
  
  <p>2) Is this method efficient or should I look into alternative methods?</p>
  
  <pre><code>if (date("Y-m-j H:i:s", strtotime('1 day ago')) &lt; date("Y-m-j H:i:s", strtotime($act['lpwdchange']))) {
      // Code Here
  }
  </code></pre>
  
  <p>Thanks!</p>