How to subtract one day from the current date using PHP
Here is the solution to subtract days from the current date or any desired date using PHP. Many projects need this type of script. You may also like How to Convert date format yyyy-mm-dd => dd-mm-yyyy using PHP and Two date get hour and minute using php
<?php
echo date('Y-m-d', strtotime(' - 1 days'));
?>
Leave a Reply