In this article, we will learn how to add months to the current date in PHP its very useful when working on a date and time functionality.
Example
let's add 1 month to the datetime. if you want to another value you can replace 3o to others.index.php
<?php
$date = date("d/m/Y", strtotime(" +1 months"));
echo $date;
?>
output:
27/02/2021