fork download
  1. <?php
  2.  
  3. $foo = '2015-01-25';
  4.  
  5. if (strtotime($foo) <= strtotime('-30 days')) {
  6. echo 'mais de 30 dias';
  7. } else {
  8. echo 'menos de 30 dias';
  9. }
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
mais de 30 dias