note 99573 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Aug 2010 14:04:15 +0000 |
| Subject: | note 99573 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172056@lists.php.net to get a copy of this message | ||
Note Submitter: rithish at gmail dot com
----
If you want to get yesterday's date, then a single line of code is enough.
<?php
$yesterday = date("Ymd", strtotime("-1 day"));
?>