Skip to content

Instantly share code, notes, and snippets.

@sedera-tax
Created April 20, 2018 07:17
Show Gist options
  • Select an option

  • Save sedera-tax/0838b184e4d80fa07a5cc371d2adb024 to your computer and use it in GitHub Desktop.

Select an option

Save sedera-tax/0838b184e4d80fa07a5cc371d2adb024 to your computer and use it in GitHub Desktop.
add day PHP
<?php
$date = "2018-02-01";
echo date('Y-m-d', strtotime($date. ' + 27 days'));
echo "|";
echo date('Y-m-d', strtotime($date. ' + 28 days'));
echo "|";
echo date('Y-m-d', strtotime($date. ' + 29 days'));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment