How to Add 1 Year in Date in PHP

Sample code is given below, where we are adding 1 year to the current date.

<?php

$today = date("Y-m-d");

$oneyear = date('Y-m-d', strtotime($today. ' + 1 year'));

echo $oneyear;
?>

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •