fork(1) download
  1. <?php
  2.  
  3. $dt1_1 = date("Y-m-d", strtotime(str_replace("/","-","10/05/2017")));
  4. $dt1_2 = date("Y-m-d", strtotime(str_replace("/","-","15/05/2017")));
  5. $dt2_1 = date("Y-m-d", strtotime(str_replace("/","-","18/04/2017")));
  6. $dt2_2 = date("Y-m-d", strtotime(str_replace("/","-","23/10/2017")));
  7.  
  8. if(($dt1_1 <= $dt2_2) && ($dt1_2 >= $dt2_1)){
  9. echo "True";
  10. }else{
  11. echo "False";
  12. }
Success #stdin #stdout 0.01s 83904KB
stdin
Standard input is empty
stdout
True