fork(20) download
  1. <?php
  2. $date_now = date_create(date('Y-m-d'));
  3. $date_db = date_create('2018-02-10');
  4.  
  5. $date_diff = date_diff($date_now,$date_db);
  6. echo '<pre>';
  7. print_r($date_diff);
  8. echo '</pre>';
  9.  
  10. if($date_diff->d < 60)echo 'less than 60 days';
Runtime error #stdin #stdout #stderr 0.01s 52488KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'if' (T_IF), expecting ',' or ';' in /home/V3ajZF/prog.php on line 10