Date Modification in PHP
Given a date:
<?php
$date = '2025-12-31';
?>
Add
2 days to this date.
Given a date:
<?php
$date = '2025-12-31';
?>
Add
1 month and 3 days to this date.
Given a date:
<?php
$date = '2025-12-31';
?>
Add 1 year to this date.
Given a date:
<?php
$date = '2025-12-31';
?>
Subtract 3 days from this date.
Given a date:
<?php
$date = '2025-12-31';
?>
Subtract 1 month and 3 days from this date.