fork(3) download
  1. <?php
  2.  
  3. $data = '1/1/2017';
  4. $timestamp = strtotime($data . "+6 months");
  5. $dia_hora_atual = strtotime(date("Y-m-d"));
  6. $diferenca = $timestamp - $dia_hora_atual;
  7. $dias = ($diferenca / 86400);
  8. echo "$dias dia(s)";
  9.  
Success #stdin #stdout 0.02s 83904KB
stdin
Standard input is empty
stdout
11 dia(s)