Making several variables into 1 variable
| From: | Miller, Terion | Date: | Tue, 28 Jul 2009 13:32:09 +0000 |
| Subject: | Making several variables into 1 variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-295916@lists.php.net to get a copy of this message | ||
I need to take this:
$pastDays = strtotime("-30 days");
$past_day = date("d", $pastDays);
$past_month = date("m", $pastDays);
$past_year =date("y", $pastDays);
And make it into one var to compare to a db field that is formatted like
00/00/00